{"id":350,"date":"2015-09-08T16:00:28","date_gmt":"2015-09-08T13:00:28","guid":{"rendered":"https:\/\/sobbayi.com\/?p=350"},"modified":"2024-02-20T10:01:02","modified_gmt":"2024-02-20T07:01:02","slug":"dissecting-cppcheck-the-static-cc-code-analysis-tool","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/dissecting-cppcheck-the-static-cc-code-analysis-tool\/","title":{"rendered":"Dissecting Cppcheck the Static C\/C++ Code Analysis Tool"},"content":{"rendered":"
Cppcheck 1.70 the static analysis tool for C and C++ code was recently released early September 2015. Static analysis tools are nothing new to C and C++ programmers and the same can be said of Cppcheck which is a mature tool to use in your C\/C++ projects.<\/p>\n
Cppcheck is a static analysis tool for C and C++ source code. Cppcheck is not designed to detect syntax errors in the source code. Instead it is designed to detect programming errors in the code thus making it defer from compilers which do more checks on syntax errors.<\/p>\n
Static code analysis is where the analysis of the computer software code that is performed without compiling or actually executing the program. That would be refereed to as dynamic analysis where the analysis is usually done on the object code rather than the source code.<\/p>\n
You would basically use Cppcheck to root out bugs in your source code. Let’s check out this usage example to give us a clear idea of what a bug in the source code could look like.<\/p>\n