JetBrains Rider 2023.2 Help

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.

Additional clang command line arguments

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

Reformat changed code after applying Clang-Tidy fix-its

By default, JetBrains Rider 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.

Clang-tidy executable to use

By default, JetBrains Rider uses built-in binary of Clang-Tidy 15.0.0. You can make JetBrains Rider use any other Clang-Tidy binary (version 7 or later).

  • Bundled - Built-in Clang-Tidy from LLVM 15.0.0.

  • Find in %PATH% - Clang-Tidy found in the location specified in the %PATH% environment variable.

  • Custom - Specific Clang-Tidy executable.

Use a specific clang-tidy configuration file

Specify a path to the specific Clang-Tidy configuration file. Its content will be converted into a command-line argument and passed to Clang-Tidy.

Last modified: 02 December 2022