Clang Power Tools is a free Visual Studio extension helping Visual Studio C++ developers leverage Clang/LLVM tools (
clang-format), in order to perform various code transformations and fixes like modernizing code to C++11/14/17 and finding subtle latent bugs with its static analyzer and CppCoreGuidelines checks.
Install this extension from Visual Studio Marketplace
Works with Visual Studio 2015 / 2017
How Clang Power Tools came to be: About
A list of available checks that clang-tidy can perform:
Custom clang-tidy wildcard checks:
The extension can be configured via the standard Visual Studio options panel.
Tools > Options > Clang Power Tools
You can customize the tool behavior as well as the clang++ compilation flags, clang-tidy checks, etc.
PowerShell script (for CI / automation):
Visual Studio 2015 / 2017
We will automatically load clang from the default installation path C:\Program Files\LLVM. If you prefer to use a different location you must manually add the bin folder to PATH.
Windows 7: Download and install at least PowerShell 3.0 (already available on Windows10)
Tips / Q & A
If you have any suggestions or feedback about Clang Power Tools, or if you encounter any issues with your projects, please submit here.
We’re excited to hear about your experience using Clang Power Tools.