cppcheck is a static C/C++ code analyzer thatchecks for memory leaks, mismatchingallocation-deallocation, buffer overrun, and manymore problems. Its goal is to produce no falsepositives.
License: GNU General Public License v3
Changes:
Extra include directories can be specified with-I. XML output can be obtained through the--xml-results option. The program returns 0 onlyif no errors found (else EXIT_FAILURE). The .C and.c++ suffixes are now allowed. New checks wereadded against using overlapping data in input andoutput with sprintf, usage of a freed pointer,freeing a pointer that has already been freed, anddangerous use of mktemp. Some checks were removedsince many compilers handle them well: unusedvariables, unreachable code, and assignments inconditional expressions. Preprocessor macros arehandled.
More...