Cppcheck - is a static analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools it does not detect syntax errors in the code.
Cppcheck primarily detects the types of bugs that the compilers normally do not detect. The goal is to detect only real errors in the code (i.e. have zero false positives).
• Unique code analysis that detects various kinds of bugs in your code.
• Both command-line interface and graphical user interface are available.