cppcheck/readme.txt

58 lines
1.1 KiB
Plaintext
Raw Normal View History

2007-05-09 08:51:44 +02:00
=========
C++ check
=========
2007-05-09 08:51:44 +02:00
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".
2007-05-09 08:51:44 +02:00
I haven't been able to test it on other platforms.
2007-05-09 08:51:44 +02:00
Usage
2007-05-23 09:49:44 +02:00
The syntax is:
cppcheck [--all] [--style] filename.cpp
2007-05-09 08:51:44 +02:00
The error messages will be printed to stderr.
2007-05-23 09:49:44 +02:00
2007-05-09 08:51:44 +02:00
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.
2007-05-09 08:51:44 +02:00
2007-05-23 09:49:44 +02:00
Author
Daniel Marjam<61>ki (danielm77@spray.se)