Good static code analysis tool ?
-
Hello,
I will try out some helper tools for C++ development. I discovered the area of "static code analysis".
Has someone experiences with such tools. Is it worth to use ?
What are good tools (maybe with integration in the Creator) ?
Analyzing of code-metrics and detection of potential errors is a needed feature. -
Hello,
I will try out some helper tools for C++ development. I discovered the area of "static code analysis".
Has someone experiences with such tools. Is it worth to use ?
What are good tools (maybe with integration in the Creator) ?
Analyzing of code-metrics and detection of potential errors is a needed feature.@Andy314
Hi
I find it worth to use. Can find potentiel errors and out of bounds situations.
Not tried it with Creator but this
http://cppcheck.sourceforge.net/
was easy to use and understand but
might not cover all cases u want
https://sourceforge.net/p/cppcheck/wiki/ListOfChecks/ -
@Andy314
Hi
I find it worth to use. Can find potentiel errors and out of bounds situations.
Not tried it with Creator but this
http://cppcheck.sourceforge.net/
was easy to use and understand but
might not cover all cases u want
https://sourceforge.net/p/cppcheck/wiki/ListOfChecks/Hi @mrjj
I have tested CppChecker with a part of my code and it has found some not initialized variables, performance issues (constructor body) and so on. Therfore I think its is worth to use a checker.
The CppChecker Gui is not very comfortable - I would like to edit it in the QtCreator directly. I found in a documentation that the Clang Static Analyser link text can work with the QtCreator, but this plugin is not installed in my version. In the docu it look for me that this is a standard part of the Creator !?
Can I get it with the maintenance tool - any experiementce with this plug-in ? -
Hi @mrjj
I have tested CppChecker with a part of my code and it has found some not initialized variables, performance issues (constructor body) and so on. Therfore I think its is worth to use a checker.
The CppChecker Gui is not very comfortable - I would like to edit it in the QtCreator directly. I found in a documentation that the Clang Static Analyser link text can work with the QtCreator, but this plugin is not installed in my version. In the docu it look for me that this is a standard part of the Creator !?
Can I get it with the maintenance tool - any experiementce with this plug-in ? -
@mrjj
I have not the entry "ClangStaticAnalyser". Instead of it I have "AnalyserBase" from the Qt Company. -
@jsulm
Qt Creator 3.6.1
Based on Qt 5.6.0 (MSVC 2013, 32 bit)Built on Mar 14 2016 09:57:09
From revision d502727b2c
-
This post is deleted!
-
Hello,
I will try out some helper tools for C++ development. I discovered the area of "static code analysis".
Has someone experiences with such tools. Is it worth to use ?
What are good tools (maybe with integration in the Creator) ?
Analyzing of code-metrics and detection of potential errors is a needed feature.@Andy314 Try PVS-Studio tool - https://www.viva64.com/en/pvs-studio/
PVS-Studio is a tool for detecting bugs and security weaknesses in the source code of programs, written in C, C++, C# and Java. It works under 64-bit systems in Windows, Linux and macOS environments, and can analyze source code intended for 32-bit, 64-bit and embedded ARM platforms.
Example: 77 Defects in Qt 6 - https://www.viva64.com/en/b/0801/