2007-05-09 08:51:44 +02:00
|
|
|
|
=========
|
|
|
|
|
C++ check
|
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compiling
|
|
|
|
|
|
|
|
|
|
Any C++ compiler should work.
|
|
|
|
|
There are no dependencies.
|
|
|
|
|
|
|
|
|
|
Linux:
|
2007-05-15 21:07:22 +02:00
|
|
|
|
g++ -o cppcheck main.cpp
|
2007-05-09 08:51:44 +02:00
|
|
|
|
|
|
|
|
|
Windows:
|
2007-05-15 21:07:22 +02:00
|
|
|
|
gxx -o cppcheck main.cpp
|
2007-05-09 08:51:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
|
|
2007-05-23 09:49:44 +02:00
|
|
|
|
The syntax is:
|
|
|
|
|
cppcheck [-w] 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
|
|
|
|
If you specify '-w', additional warning
|
|
|
|
|
messages will be printed.
|
|
|
|
|
|
|
|
|
|
|
2007-05-09 08:51:44 +02:00
|
|
|
|
|
|
|
|
|
Recommendations
|
|
|
|
|
|
|
|
|
|
Create a shell script that checks all files.
|
|
|
|
|
|
2007-05-23 09:49:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Author
|
|
|
|
|
|
|
|
|
|
Daniel Marjam<61>ki
|
|
|
|
|
A 29 year old from sweden who works in
|
|
|
|
|
Stockholm as a programmer (developing
|
|
|
|
|
a RAD tool for control systems that
|
|
|
|
|
control hydraulics).
|