Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use clang static analyzer in qt creator

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

like image 771
amigo421 Avatar asked Jul 14 '15 07:07

amigo421


People also ask

What is clang static analyzer?

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.

Is clang-tidy a static analysis tool?

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.

How do I enable clang-tidy?

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.

How do I disable clang code model in Qt?

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.


1 Answers

good news for Qt Creator users: clang static analyzer will be included into QtC community edition starting from version 3.7

like image 79
amigo421 Avatar answered Oct 26 '22 00:10

amigo421