5eb653911e
by fillFunctionList() |
||
---|---|---|
man | ||
COPYING | ||
CheckBufferOverrun.cpp | ||
CheckBufferOverrun.h | ||
CheckClass.cpp | ||
CheckClass.h | ||
CheckFunctionUsage.cpp | ||
CheckFunctionUsage.h | ||
CheckHeaders.cpp | ||
CheckHeaders.h | ||
CheckMemoryLeak.cpp | ||
CheckMemoryLeak.h | ||
CheckOther.cpp | ||
CheckOther.h | ||
FileLister.cpp | ||
FileLister.h | ||
Makefile | ||
cppcheck.cbp | ||
cppcheck.cbproj | ||
cppcheck.cpp | ||
cppcheck.h | ||
cppcheck.sln | ||
cppcheck.vcproj | ||
cppcheckexecutor.cpp | ||
cppcheckexecutor.h | ||
errorlogger.h | ||
main.cpp | ||
preprocessor.cpp | ||
preprocessor.h | ||
readme.txt | ||
settings.cpp | ||
settings.h | ||
testbufferoverrun.cpp | ||
testcharvar.cpp | ||
testconstructors.cpp | ||
testdivision.cpp | ||
testfunctionusage.cpp | ||
testincompletestatement.cpp | ||
testmemleak.cpp | ||
testpreprocessor.cpp | ||
testrunner.cbproj | ||
testrunner.cpp | ||
testrunner.sln | ||
testrunner.vcproj | ||
testsimplifytokens.cpp | ||
testsuite.cpp | ||
testsuite.h | ||
testtokenize.cpp | ||
testunusedprivfunc.cpp | ||
testunusedvar.cpp | ||
todo.txt | ||
token.cpp | ||
token.h | ||
tokenize.cpp | ||
tokenize.h |
readme.txt
========= C++ check ========= Compiling Any C++ compiler should work. There are no dependencies. The Makefile works under Linux. To make it work under Windows, change "g++" to "gxx". I haven't been able to test it on other platforms. Usage The syntax is: cppcheck [--all] [--style] [--recursive] [filename1] [filename2] The error messages will be printed to stderr. Example (Check all files. Use all checks): cppcheck -style --all --recursive Recommendations Create a shell script that checks all files. See "checkproj.bat" for an example of how it can be done under Windows. When the "--all" flag is given you may get a lot of error messages. To dump the messages to a textfile you can use a command like this: cppcheck --all filename.cpp 2> messages.txt If you want to filter the messages you could use: * grep to filter out specific types of messages * diff to compare old messages with new messages. There are even GUIs for this. Suggestions I'd like to get suggestions about new checks. Author Daniel Marjamäki (danielm77@spray.se)