|
||
---|---|---|
man | ||
COPYING | ||
Makefile | ||
checkbufferoverrun.cpp | ||
checkbufferoverrun.h | ||
checkclass.cpp | ||
checkclass.h | ||
checkfunctionusage.cpp | ||
checkfunctionusage.h | ||
checkheaders.cpp | ||
checkheaders.h | ||
checkmemoryleak.cpp | ||
checkmemoryleak.h | ||
checkother.cpp | ||
checkother.h | ||
cppcheck.cbp | ||
cppcheck.cbproj | ||
cppcheck.cpp | ||
cppcheck.h | ||
cppcheck.sln | ||
cppcheck.vcproj | ||
cppcheckexecutor.cpp | ||
cppcheckexecutor.h | ||
errorlogger.h | ||
filelister.cpp | ||
filelister.h | ||
main.cpp | ||
preprocessor.cpp | ||
preprocessor.h | ||
readme.txt | ||
settings.cpp | ||
settings.h | ||
tasks.txt | ||
testbufferoverrun.cpp | ||
testcharvar.cpp | ||
testclass.cpp | ||
testconstructors.cpp | ||
testdivision.cpp | ||
testfilelister.cpp | ||
testfunctionusage.cpp | ||
testincompletestatement.cpp | ||
testmemleak.cpp | ||
testpreprocessor.cpp | ||
testredundantif.cpp | ||
testrunner.cbproj | ||
testrunner.cpp | ||
testrunner.sln | ||
testrunner.vcproj | ||
testsimplifytokens.cpp | ||
testsuite.cpp | ||
testsuite.h | ||
testtoken.cpp | ||
testtokenize.cpp | ||
testunusedprivfunc.cpp | ||
testunusedvar.cpp | ||
token.cpp | ||
token.h | ||
tokenize.cpp | ||
tokenize.h |
readme.txt
========= C++ check ========= About The original name of this program is "C++check". The name was changed to "cppcheck" (a google search is more successful now). Compiling Any C++ compiler should work. The Makefile works under Linux. To make it work under Windows with DJGPP, change "g++" to "gxx". Usage The syntax is: cppcheck [--all] [--errorsonly] [--style] [--recursive] [filename1] [filename2] The error messages will be printed to stderr. Example (Check all files. Use all checks): cppcheck --style --all --recursive To output error messages to a file use this syntax (works both on Windows and Linux): cppcheck file.cpp 2> err.txt Recommendations When the "--all" flag is given you may get a lot of error messages. Webpage http://www.sf.net/projects/cppcheck