ReSharper 2019.2 Help


ReSharper | Options | Code Editing | C++ | Clang-Tidy

On this page, you can configure Clang-Tidy integration.



Enable clang-tidy support

Lets you enable or disable Clang-Tidy integration.

List of enabled/disabled clang-tidy checks

The -checks command line option of the Clang-Tidy binary is used to pass the list of enabled checks, which then gets appended to the value of the checks option read from the Clang-Tidy config. To construct the -checks argument, ReSharper takes this value and appends to it the names of Clang-Tidy checks which are turned off on the Code Inspection | Inspection Severity options page.

Additional clang command line arguments

Arguments specified in this field are appended to the list of arguments passed to the Clang-Tidy binary.

Clang-Tidy config

Use this field to pass a string with custom configuration to the Clang-Tidy binary via the -config command-line option.

Reformat changed code after applying Clang-Tidy fix-its

By default, ReSharper will reformat code changed by Clang-Tidy fixes to maintain the code style.
You can disable this setting to speed up the execution of Clang-Tidy fixes and bulk-reformat the modified code later.

Use external clang-tidy

By default, ReSharper uses built-in binary of Clang-tidy 8. You can make ReSharper use any other Clang-tidy binary (version 7 or later).

Last modified: 18 November 2019