Static analysis tool for detecting bugs in C and C++ code
Static analysis of C and C++ code
cppcheck
$ cppcheck .
$ cppcheck --verbose myfile.cpp
$ cppcheck --xml --enable=all src/ > report.xml