View on GitHub

Clang Power Tools

Bringing clang-tidy magic to Visual Studio C++ developers

Clang Power Tools is a free Visual Studio extension helping Visual Studio C++ developers leverage Clang/LLVM tools (clang++, clang-tidy and 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.

Download

Install this extension from Visual Studio Marketplace

Works with Visual Studio 2015 / 2017

Version History

Release Notes

Features

๐ŸŽž๏ธ Video Showcase

ClangPowerTools

ClangPowerTools

ClangPowerTools

A list of available checks that clang-tidy can perform:

ClangPowerTools

Custom clang-tidy wildcard checks:

ClangPowerTools

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.

ClangPowerTools

๐Ÿ†• Built-in support for clang-format
Auto-format source file on save, configurable style options, file extension rules, etc.

PowerShell scripts (for CI / automation):

Requirements

Visual Studio 2015 / 2017

Download and install Clang for Windows (LLVM pre-built binary)
LLVM-6.0.1-win64
releases.llvm.org/download.html

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

Tips and Frequently asked questions

Feedback

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.