static analysis of C/C++ code
Go to file
Daniel Marjamäki 954cccf843 Removed checking of 'dynamic data' it's impossible to determine if it's
false or true positives without deeper analysis.
2008-03-24 11:00:04 +00:00
CheckBufferOverrun.cpp Removed checking of 'dynamic data' it's impossible to determine if it's 2008-03-24 11:00:04 +00:00
CheckBufferOverrun.h CheckBufferOverrun: Added 'CheckDangerousFunctions' 2007-05-25 06:44:53 +00:00
CheckClass.cpp Refactoring (Replace '->' with '.', use matching function when possible) 2008-03-23 14:15:44 +00:00
CheckClass.h CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00
CheckHeaders.cpp Reverted 205:207 2008-03-23 13:38:01 +00:00
CheckHeaders.h CheckHeaders: Added files (Check for mistakes in headers or related to headers) 2007-05-24 13:08:18 +00:00
CheckMemoryLeak.cpp Unit Testing: Checking for mismatching allocation / deallocation 2008-02-17 16:19:01 +00:00
CheckMemoryLeak.h CheckMemoryLeak: Added files (Check for memory leaks) 2007-05-24 13:08:51 +00:00
CheckOther.cpp Reverted 205:207 2008-03-23 13:38:01 +00:00
CheckOther.h Added test 'CheckVariableScope'. Increased constness. 2008-03-16 13:17:43 +00:00
CommonCheck.cpp Combined 'findfunction' and 'FindFunction'. Updated "CheckBufferOverrun" 2008-03-24 07:24:49 +00:00
CommonCheck.h Combined 'findfunction' and 'FindFunction'. Updated "CheckBufferOverrun" 2008-03-24 07:24:49 +00:00
Makefile Unit Testing: Start 2008-02-16 15:46:32 +00:00
Statements.cpp Updates here and there to make it more accurate 2008-03-19 06:03:56 +00:00
Statements.h Unit Testing: Moved the 'internaltesting' 2008-02-17 15:23:14 +00:00
TestTok.cpp minor updates 2007-05-29 17:12:14 +00:00
bufferoverrun.txt bufferoverrun.txt: Added file that contains thoughts and ideas concerning buffer overruns. 2007-07-20 06:21:40 +00:00
bugs_that_cppcheck_finds.txt Added list of bugs that cppcheck find (incomplete) 2008-02-17 17:22:21 +00:00
main.cpp Updates here and there to make it more accurate 2008-03-19 06:03:56 +00:00
readme.txt updated command syntax example 2008-02-22 14:58:53 +00:00
tests.cpp Removed checking of 'dynamic data' it's impossible to determine if it's 2008-03-24 11:00:04 +00:00
todo.txt Updated 'todo.txt' 2008-03-17 05:53:29 +00:00
tokenize.cpp Refactoring (Replace '->' with '.', use matching function when possible) 2008-03-23 14:15:44 +00:00
tokenize.h In the checks, use const pointers 2008-03-22 11:46:06 +00:00

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)