static analysis of C/C++ code
Go to file
Reijo Tomperi 21eaadbe31 Fixed several bugs from previous commits and added check code that will print errors if varid is 0 when %varid% is given in Match(). 2009-01-04 20:33:12 +00:00
man Bailing out if too many (over 12) configurations found froma file. --force parameter added to prevent this from happening. 2008-12-27 07:52:07 +00:00
COPYING Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
Makefile ErrorMessage class added (not used yet and it is still unfinished) 2009-01-03 13:51:55 +00:00
checkbufferoverrun.cpp Refactoring: Changed order of parameters in Match() and findMatch() (deprecated parameter moved to last) 2009-01-03 21:05:47 +00:00
checkbufferoverrun.h Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
checkclass.cpp Fixed several bugs from previous commits and added check code that will print errors if varid is 0 when %varid% is given in Match(). 2009-01-04 20:33:12 +00:00
checkclass.h Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
checkfunctionusage.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
checkfunctionusage.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
checkheaders.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
checkheaders.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
checkmemoryleak.cpp Refactoring: Changed order of parameters in Match() and findMatch() (deprecated parameter moved to last) 2009-01-03 21:05:47 +00:00
checkmemoryleak.h Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
checkother.cpp Fixed several bugs from previous commits and added check code that will print errors if varid is 0 when %varid% is given in Match(). 2009-01-04 20:33:12 +00:00
checkother.h Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
cppcheck.cbp ErrorMessage class added (not used yet and it is still unfinished) 2009-01-03 13:51:55 +00:00
cppcheck.cbproj Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
cppcheck.cpp variable usage: The check must be made before simplifyTokenList to avoid false positives 2009-01-04 18:28:05 +00:00
cppcheck.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
cppcheck.sln Added Visual C++ 2008 Express solution and project files 2008-11-03 18:57:18 +00:00
cppcheck.vcproj visual c++: updated the project file 2008-12-19 10:33:16 +00:00
cppcheckexecutor.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
cppcheckexecutor.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
errorlogger.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
errormessage.cpp ErrorMessage class added (not used yet and it is still unfinished) 2009-01-03 13:51:55 +00:00
errormessage.h ErrorMessage class added (not used yet and it is still unfinished) 2009-01-03 13:51:55 +00:00
filelister.cpp MinGW: Applied the patch submitted by kidkat that makes cppcheck compilable with MinGW 2009-01-04 18:46:45 +00:00
filelister.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
main.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
preprocessor.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
preprocessor.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
readme.txt readme : minor updates 2008-12-30 18:45:35 +00:00
settings.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
settings.h Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
tasks.txt Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testbufferoverrun.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testcharvar.cpp Refactoring: %var1% -> %varid% 2009-01-03 20:53:12 +00:00
testclass.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testconstructors.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testdivision.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testfilelister.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testfunctionusage.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testincompletestatement.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testmemleak.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testmemleakmp.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testother.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testpreprocessor.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testredundantif.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testrunner.cbproj Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
testrunner.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testrunner.sln Visual C++ Express 2008: Added project 'testrunner' and updated the project 'cppcheck' 2008-11-15 07:15:01 +00:00
testrunner.vcproj Visual C++ : Updated the project file 2008-12-27 11:31:00 +00:00
testsimplifytokens.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testsuite.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testsuite.h Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testtoken.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testtokenize.cpp Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
testunusedprivfunc.cpp Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
testunusedvar.cpp variable usage: fixed false positive when using operator '^' 2009-01-04 18:38:24 +00:00
token.cpp Fixed several bugs from previous commits and added check code that will print errors if varid is 0 when %varid% is given in Match(). 2009-01-04 20:33:12 +00:00
token.h Refactoring: findMatch() that supports varId added. %var1% -> %varid% changed 2009-01-04 19:55:12 +00:00
tokenize.cpp tokenize : Removed unneeded variable 2009-01-04 07:14:46 +00:00
tokenize.h Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00

readme.txt


=========
Cppcheck
=========


About

  The original name of this program is "C++check".
  The name was changed to "cppcheck".


Compiling

  Any C++ compiler should work.

  The Makefile works under Linux.
  To make it work under Windows with DJGPP, change "g++" to "gxx".


Usage

  Run the cppcheck program without parameters and a help text will be shown.


Recommendations

  When the "--all" flag is given you may get a lot of error messages.


Webpage

  http://www.sf.net/projects/cppcheck