static analysis of C/C++ code
Go to file
Daniel Marjamäki fc325ac98a Memory leak : Added a test case for future checking of struct members 2008-12-16 19:16:52 +00:00
man Verbose: Added line change to help text printing and updated man page 2008-11-30 10:38:58 +00:00
COPYING Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
Makefile Redundant condition : Added a check 2008-12-15 07:29:55 +00:00
checkbufferoverrun.cpp Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkbufferoverrun.h Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkclass.cpp Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkclass.h Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkfunctionusage.cpp Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkfunctionusage.h Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkheaders.cpp Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkheaders.h Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkmemoryleak.cpp Memory leak : Fixed issue 2429936 - false positive reported on the break in the code "loop { dealloc ; alloc ; if break ; }" 2008-12-16 19:01:15 +00:00
checkmemoryleak.h Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
checkother.cpp Removes WarningIs(Alpha|Digit) checks as this can introduce more problems than fixes. 2008-12-15 23:03:04 +00:00
checkother.h Removes WarningIs(Alpha|Digit) checks as this can introduce more problems than fixes. 2008-12-15 23:03:04 +00:00
cppcheck.cbp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
cppcheck.cbproj Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
cppcheck.cpp Removes WarningIs(Alpha|Digit) checks as this can introduce more problems than fixes. 2008-12-15 23:03:04 +00:00
cppcheck.h Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +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-11-24 07:47:13 +00:00
cppcheckexecutor.cpp Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
cppcheckexecutor.h Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
errorlogger.h Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
filelister.cpp Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
filelister.h Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
main.cpp Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
preprocessor.cpp Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
preprocessor.h Formatting: uniformize end of lines. 2008-12-13 11:39:36 +00:00
readme.txt readme : fixed the readme file 2008-12-11 18:07:23 +00:00
settings.cpp Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
settings.h Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
tasks.txt tasks : Added task for optimising TOKEN::Match 2008-12-15 18:54:04 +00:00
testbufferoverrun.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testcharvar.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testclass.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testconstructors.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testdivision.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testfilelister.cpp Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00
testfunctionusage.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testincompletestatement.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testmemleak.cpp Memory leak : Added a test case for future checking of struct members 2008-12-16 19:16:52 +00:00
testpreprocessor.cpp preprocessing : Skip special characters. Refactoring. 2008-12-11 18:09:20 +00:00
testredundantif.cpp Redundant condition : fixed the checking 2008-12-15 18:49:34 +00:00
testrunner.cbproj Borland C++ : Updated project files cppcheck and testrunner 2008-12-08 06:45:52 +00:00
testrunner.cpp Formatting: uniformize end of lines. 2008-12-09 00:49:32 +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++ Express 2008: Added project 'testrunner' and updated the project 'cppcheck' 2008-11-15 07:15:01 +00:00
testsimplifytokens.cpp Refactoring: changed "aaaa" to "str" 2008-12-13 11:52:56 +00:00
testsuite.cpp Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
testsuite.h Formatting: uniformize end of lines. 2008-12-09 00:49:32 +00:00
testtoken.cpp Formatting: uniformize end of lines. 2008-12-14 17:05:21 +00:00
testtokenize.cpp Formatting: uniformize end of lines. 2008-12-14 17:05:21 +00:00
testunusedprivfunc.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
testunusedvar.cpp Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit. 2008-12-14 20:49:55 +00:00
token.cpp token : minor refactoring to TOKEN::insertToken. Give the linenr and fileIndex the same values as this token. It's better than nothing 2008-12-16 17:05:43 +00:00
token.h token : minor refactoring to TOKEN::insertToken. Give the linenr and fileIndex the same values as this token. It's better than nothing 2008-12-16 17:05:43 +00:00
tokenize.cpp Fix compilation 2008-12-14 23:06:37 +00:00
tokenize.h Formatting: uniformize end of lines. 2008-12-14 17:05:21 +00:00

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