Clang Tools
Detect problems in C, C++, and Objective-C programs with Clang-Tidy and Clazy.
To configure Clang diagnostics globally for Clang tools:
- Select Preferences > Analyzer > Clang Tools.
- In the Clang-Tidy and Clazy-Standalone fields, set the paths to the executables to use.
- The Diagnostic configuration field shows the checks to perform. Click the value of the field to open the Diagnostic Configurations dialog, where you can select and edit the checks to perform.
To perform checks from a Clang-Tidy configuration file instead, select Prefer .clang-tidy file, if present.
- To build the project before running the Clang tools, select the Build the project before analysis check box. The Clang tools do not require that you build the project before analysis, but they might display misleading warnings about files missing that are generated during the build. For big projects, not building the project might save some time.
- To disable automatic analysis of open documents, deselect the Analyze open files check box.
- In the Parallel jobs field, select the number of jobs to run in parallel to make the analysis faster on multi-core processors.
See also Configure Clang diagnostics, Analyze code with Clang-Tidy and Clazy, and Specify Clang tools settings.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.