Update man page and readme to reflect the new syntax
This commit is contained in:
parent
cd405f4089
commit
347068b672
|
@ -102,12 +102,23 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>&dhpackage;</command>
|
<command>&dhpackage;</command>
|
||||||
<arg choice="opt"><option>--all</option></arg>
|
<group choise="opt">
|
||||||
<arg choice="opt"><option>--style</option></arg>
|
<arg choice="opt"><option>-a</option></arg>
|
||||||
<arg choice="opt"><option>--recursive</option></arg>
|
<arg choice="opt"><option>--all</option></arg>
|
||||||
<arg choice="opt"><option>--errorsonly</option></arg>
|
</group>
|
||||||
<arg choice="opt"><option>--verbose</option></arg>
|
<group choise="opt">
|
||||||
<arg choice="opt"><option>filename</option></arg>
|
<arg choice="opt"><option>-q</option></arg>
|
||||||
|
<arg choice="opt"><option>--quiet</option></arg>
|
||||||
|
</group>
|
||||||
|
<group choise="opt">
|
||||||
|
<arg choice="opt"><option>-s</option></arg>
|
||||||
|
<arg choice="opt"><option>--style</option></arg>
|
||||||
|
</group>
|
||||||
|
<group choise="opt">
|
||||||
|
<arg choice="opt"><option>-v</option></arg>
|
||||||
|
<arg choice="opt"><option>--verbose</option></arg>
|
||||||
|
</group>
|
||||||
|
<arg choice="opt"><option>file or path</option></arg>
|
||||||
<arg choice="plain"><option>...</option></arg>
|
<arg choice="plain"><option>...</option></arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
|
@ -132,24 +143,18 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
found a bug. When this option is given, all messages are shown.</para>
|
found a bug. When this option is given, all messages are shown.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--quiet</option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>Only print something when there is an error.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--style</option></term>
|
<term><option>--style</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Check coding style.</para>
|
<para>Check coding style.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
|
||||||
<term><option>--recursive</option></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Recursively check all *.cpp, *.cxx, *.cc and *.c files.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><option>--errorsonly</option></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Only print something when there is an error.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--verbose</option></term>
|
<term><option>--verbose</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
38
readme.txt
38
readme.txt
|
@ -1,19 +1,19 @@
|
||||||
|
|
||||||
|
|
||||||
=========
|
=========
|
||||||
C++ check
|
Cppcheck
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|
||||||
About
|
About
|
||||||
|
|
||||||
The original name of this program is "C++check".
|
The original name of this program is "C++check".
|
||||||
The name was changed to "cppcheck" (a google search is more successful now).
|
The name was changed to "cppcheck" (a google search is more successful now).
|
||||||
|
|
||||||
|
|
||||||
Compiling
|
Compiling
|
||||||
|
|
||||||
Any C++ compiler should work.
|
Any C++ compiler should work.
|
||||||
|
|
||||||
The Makefile works under Linux.
|
The Makefile works under Linux.
|
||||||
To make it work under Windows with DJGPP, change "g++" to "gxx".
|
To make it work under Windows with DJGPP, change "g++" to "gxx".
|
||||||
|
@ -22,24 +22,24 @@ Compiling
|
||||||
Usage
|
Usage
|
||||||
|
|
||||||
The syntax is:
|
The syntax is:
|
||||||
cppcheck [--all] [--errorsonly] [--style] [--recursive] [filename1] [filename2]
|
cppcheck [--all] [--quiet] [--style] [file or path] [file or path]
|
||||||
|
|
||||||
The error messages will be printed to stderr.
|
The error messages will be printed to stderr.
|
||||||
|
|
||||||
Example (Check all files. Use all checks):
|
Example (Check all files. Use all checks):
|
||||||
cppcheck --style --all --recursive
|
cppcheck --style --all ./
|
||||||
|
|
||||||
To output error messages to a file use this syntax (works both on Windows and Linux):
|
To output error messages to a file use this syntax (works both on Windows and Linux):
|
||||||
cppcheck file.cpp 2> err.txt
|
cppcheck file.cpp 2> err.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Recommendations
|
Recommendations
|
||||||
|
|
||||||
When the "--all" flag is given you may get a lot of error messages.
|
When the "--all" flag is given you may get a lot of error messages.
|
||||||
|
|
||||||
|
|
||||||
Webpage
|
Webpage
|
||||||
|
|
||||||
http://www.sf.net/projects/cppcheck
|
http://www.sf.net/projects/cppcheck
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue