static analysis of C/C++ code
Go to file
Daniel Marjamäki 80e35e7332 Preprocessor : Replace "#if defined(.." with "ifdef .." where possible 2009-01-02 18:27:50 +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 Makefile : Removed the .gprof makefile and added a CGLAGS variable so the normal Makefile can easily be changed 2008-12-25 17:11:01 +00:00
checkbufferoverrun.cpp Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
checkbufferoverrun.h buffer overruns : renamed functions + minor simplification 2008-12-20 08:53:42 +00:00
checkclass.cpp Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
checkclass.h Class checking : Renamed the check functions 2008-12-20 08:48:52 +00:00
checkfunctionusage.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
checkfunctionusage.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
checkheaders.cpp Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
checkheaders.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
checkmemoryleak.cpp Memory leak: Improved the checking of usage after free (if str is freed then "char c = str[0];" is illegal) 2009-01-02 08:00:12 +00:00
checkmemoryleak.h Memory leak : Updated the multipass checking a little 2008-12-20 21:52:40 +00:00
checkother.cpp Refactoring: i++; changed to ++i; 2009-01-01 23:43:23 +00:00
checkother.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
cppcheck.cbp codeblocks : added testmemleakmp 2008-12-20 19:07:20 +00:00
cppcheck.cbproj Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
cppcheck.cpp Preprocessor: Get rid of an unused parameter 2009-01-02 00:13:24 +00:00
cppcheck.h Copyright and app name changed in each file 2008-12-19 21:15:06 +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 and app name changed in each file 2008-12-19 21:15:06 +00:00
cppcheckexecutor.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
errorlogger.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
filelister.cpp Fix FileLister::RecursiveAddFiles on files without a base path. 2008-12-22 22:46:31 +00:00
filelister.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
main.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
preprocessor.cpp Preprocessor : Replace "#if defined(.." with "ifdef .." where possible 2009-01-02 18:27:50 +00:00
preprocessor.h Preprocessor : Replace "#if defined(.." with "ifdef .." where possible 2009-01-02 18:27:50 +00:00
readme.txt readme : minor updates 2008-12-30 18:45:35 +00:00
settings.cpp 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
settings.h 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
tasks.txt tasks : Added task for optimising TOKEN::Match 2008-12-15 18:54:04 +00:00
testbufferoverrun.cpp buffer overruns : renamed functions + minor simplification 2008-12-20 08:53:42 +00:00
testcharvar.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testclass.cpp Updated the test to reflect change in previous commit 2008-12-20 21:09:28 +00:00
testconstructors.cpp Class checking : Renamed the check functions 2008-12-20 08:48:52 +00:00
testdivision.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testfilelister.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testfunctionusage.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testincompletestatement.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testmemleak.cpp Memory leak : Added test case "if10" which is similar to "if9" 2009-01-02 08:16:32 +00:00
testmemleakmp.cpp Memory leak : Updated the multipass checking a little 2008-12-20 21:52:40 +00:00
testother.cpp Fixed bug with redundant condition: http://sourceforge.net/forum/forum.php?thread_id=2711792&forum_id=693501 2008-12-20 22:24:11 +00:00
testpreprocessor.cpp Preprocessor : Replace "#if defined(.." with "ifdef .." where possible 2009-01-02 18:27:50 +00:00
testredundantif.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testrunner.cbproj Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
testrunner.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +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 removeRedundantConditions : Added a simple test case for "else if (false)" 2008-12-26 15:46:59 +00:00
testsuite.cpp Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
testsuite.h Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
testtoken.cpp TOKEN: Renamed TOKEN::setstr to TOKEN::str 2009-01-01 09:37:07 +00:00
testtokenize.cpp simplifyIfAddBraces : Further fixes so that braces will be added to an "else" statement too 2008-12-23 08:11:33 +00:00
testunusedprivfunc.cpp Class checking : Renamed the check functions 2008-12-20 08:48:52 +00:00
testunusedvar.cpp Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
token.cpp Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
token.h TOKEN: Renamed TOKEN::setstr to TOKEN::str 2009-01-01 09:37:07 +00:00
tokenize.cpp Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
tokenize.h removeReduntantConditions() can now handle if( true ) else if () conditions also. 2008-12-26 12:55:53 +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