static analysis of C/C++ code
Go to file
Reijo Tomperi 1efb4c95a6 Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
man man: Added xml for generating man page 2008-11-01 17:16:48 +00:00
COPYING Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
CheckBufferOverrun.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
CheckBufferOverrun.h Refactoring: Tokenizer object given as a parameter to most of the classes 2008-11-12 21:34:47 +00:00
CheckClass.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
CheckClass.h Refactoring: Tokenizer object given as a parameter to most of the classes 2008-11-12 21:34:47 +00:00
CheckHeaders.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
CheckHeaders.h Refactoring: Tokenizer object given as a parameter to most of the classes 2008-11-12 21:34:47 +00:00
CheckMemoryLeak.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
CheckMemoryLeak.h Refactoring: Tokenizer object given as a parameter to most of the classes 2008-11-12 21:34:47 +00:00
CheckOther.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
CheckOther.h Refactoring: Tokenizer object given as a parameter to most of the classes 2008-11-12 21:34:47 +00:00
CommonCheck.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
CommonCheck.h Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
FileLister.cpp FileLister.* and testtokenize.cpp, changed encoding to utf-8 2008-11-06 19:40:49 +00:00
FileLister.h FileLister.* and testtokenize.cpp, changed encoding to utf-8 2008-11-06 19:40:49 +00:00
Makefile Make: New improved makefile 2008-11-13 20:48:25 +00:00
cppcheck.cbproj Updated the Borland C++ project files 2008-11-03 18:57:53 +00:00
cppcheck.sln Added Visual C++ 2008 Express solution and project files 2008-11-03 18:57:18 +00:00
cppcheck.vcproj Added Visual C++ 2008 Express solution and project files 2008-11-03 18:57:18 +00:00
main.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
preprocessor.cpp Refactoring: Following new classes were created: 2008-11-11 06:42:09 +00:00
preprocessor.h Refactoring: Following new classes were created: 2008-11-11 06:42:09 +00:00
readme.txt updated command syntax example 2008-02-22 14:58:53 +00:00
testbufferoverrun.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testcharvar.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testconstructors.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testdivision.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testincompletestatement.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testmemleak.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testpreprocessor.cpp Refactoring: Following new classes were created: 2008-11-11 06:42:09 +00:00
testrunner.cbproj Memory Leaks: Convert "do-while" blocks to "while" blocks to make the handling for that the same. 2008-11-07 16:19:55 +00:00
testrunner.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testsuite.cpp Testing: Only run tests in a specified class 2008-10-26 11:11:26 +00:00
testsuite.h GPL: Added comment in testsuite.h 2008-11-08 13:15:48 +00:00
testtokenize.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testunusedprivfunc.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
testunusedvar.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
todo.txt todo: added memory leak examples 2008-11-10 18:52:15 +00:00
tokenize.cpp Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +00:00
tokenize.h Refactoring: Global variable Files is no more. Use tokenizer->getFiles() to get a pointer to it. 2008-11-13 22:39:47 +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)