Daniel Marjamäki 794710a0bd Addon to [232]
2008-04-06 06:35:53 +00:00
2008-04-02 09:37:05 +00:00
2008-04-06 06:35:53 +00:00
2008-02-16 15:46:32 +00:00
2008-02-22 14:58:53 +00:00
2008-03-29 17:27:02 +00:00
2007-05-29 17:12:14 +00:00
2008-03-17 05:53:29 +00:00


=========
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)

Description
2.8r1 Latest
2022-09-22 22:21:12 +02:00
Languages
C++ 86%
C 8.3%
Python 4%
Makefile 0.5%
CMake 0.4%
Other 0.8%