see this manual Using Clang Static Analyzer in Qt Creator manual
can someone tell me for to set up this? I don't see this tab in analyzer settings in QtCreator and don't see the plugin in the list which can be used for this...
UPDATE: sorry, I see this is a commercial version only
The Clang Static Analyzer is a source code analysis tool that finds bugs in C, C++, and Objective-C programs. It implements path-sensitive, inter-procedural analysis based on symbolic execution technique.
clang-tidy is a clang-based C++ “linter” tool. Its purpose is to provide an extensible framework for diagnosing and fixing typical programming errors, like style violations, interface misuse, or bugs that can be deduced via static analysis.
Clang-Tidy configurationIn the project Property Pages dialog, open the Configuration Properties > Code Analysis > Clang-Tidy page. Enter checks to run in the Clang-Tidy Checks property. A good default set is clang-analyzer-* . This property value is provided to the --checks argument of the tool.
Go into Help->About Plugins and uncheck the Clang code model plugin. You have to restart qt creator after that to make it take effect.
good news for Qt Creator users: clang static analyzer will be included into QtC community edition starting from version 3.7
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With