Skip to content

Commit b5d81d0

Browse files
committed
Update man page
1 parent c34c3ee commit b5d81d0

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

man/cppcheck.1.xml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,26 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
9797
</refmeta>
9898
<refnamediv>
9999
<refname>&dhpackage;</refname>
100-
<refpurpose>Simple syntax checking of C/C++.</refpurpose>
100+
<refpurpose>Tool for static C/C++ code analysis</refpurpose>
101101
</refnamediv>
102102
<refsynopsisdiv>
103103
<cmdsynopsis>
104104
<command>&dhpackage;</command>
105-
<arg choice="opt"><option>--append [file]</option></arg>
105+
<arg choice="opt"><option>--append=[file]</option></arg>
106106
<arg choice="opt"><option>-D[id]</option></arg>
107107
<arg choice="opt"><option>--enable=[id]</option></arg>
108108
<arg choice="opt"><option>--error-exitcode=[n]</option></arg>
109109
<arg choice="opt"><option>--exitcode-suppressions [file]</option></arg>
110+
<arg choice="opt"><option>--file-list=file</option></arg>
110111
<arg choice="opt"><option>--force</option></arg>
111112
<arg choice="opt"><option>--help</option></arg>
112113
<arg choice="opt"><option>-I[dir]</option></arg>
114+
<arg choice="opt"><option>--inline-suppr</option></arg>
113115
<arg choice="opt"><option>-j[jobs]</option></arg>
114116
<arg choice="opt"><option>--quiet</option></arg>
115117
<arg choice="opt"><option>--style</option></arg>
116118
<arg choice="opt"><option>--suppressions [file]</option></arg>
117-
<arg choice="opt"><option>--template ['text']</option></arg>
118-
<arg choice="opt"><option>--unused-functions</option></arg>
119+
<arg choice="opt"><option>--template '[text]'</option></arg>
119120
<arg choice="opt"><option>--verbose</option></arg>
120121
<arg choice="opt"><option>--version</option></arg>
121122
<arg choice="opt"><option>--xml</option></arg>
@@ -125,10 +126,13 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
125126
</refsynopsisdiv>
126127
<refsect1 id="description">
127128
<title>DESCRIPTION</title>
128-
<para>Tool for static C/C++ code analysis
129-
intended to complement the checking of the compiler.
130-
Checks for: memory leaks, mismatching allocation-deallocation,
131-
buffer overrun, and many more.</para>
129+
<para>Cppcheck is a command-line tool that tries to detect bugs that your C/C++
130+
compiler doesn't see. It is versatile, and can check non-standard code
131+
including various compiler extensions, inline assembly code, etc.
132+
Its internal preprocessor can handle includes, macros, and several
133+
preprocessor commands. While Cppcheck is highly configurable,
134+
you can start using it just by giving it a path to the source code.
135+
</para>
132136
</refsect1>
133137
<refsect1 id="options">
134138
<title>OPTIONS</title>
@@ -262,11 +266,12 @@ files, this is not needed.</para>
262266
<varlistentry>
263267
<term><option>--suppressions [file]</option></term>
264268
<listitem>
265-
<para>Suppress warnings listed in the file. Filename and line are optional. The format of the single line in file is: [error id]:[filename]:[line]</para>
269+
<para>Suppress warnings listed in the file. Filename and line are optional. The format of the single line in file is: [error id]:[filename]:[line].
270+
You can use --template or --xml to see the error id.</para>
266271
</listitem>
267272
</varlistentry>
268273
<varlistentry>
269-
<term><option>--template ['text']</option></term>
274+
<term><option>--template '[text]'</option></term>
270275
<listitem>
271276
<para>Format the error messages. E.g. '{file}:{line},{severity},{id},{message}' or '{file}({line}):({severity}) {message}'. Pre-defined templates: gcc, vs</para>
272277
</listitem>
@@ -300,7 +305,7 @@ files, this is not needed.</para>
300305
</refsect1>
301306
<refsect1 id="author">
302307
<title>AUTHOR</title>
303-
<para>The program was written by Bill Egert, Daniel Marjamäki, Gianluca Scacco, Hoang Tuan Su, Kimmo Varis, Leandro Penz, Nicolas Le Cam, Reijo Tomperi, Slava Semushin and Vesa Pikki</para>
308+
<para>The program was written by Bill Egert, Daniel Marjamäki, Gianluca Scacco, Hoang Tuan Su, Kimmo Varis, Leandro Penz, Martin Ettl, Nguyen Duong Tuan, Nicolas Le Cam, Reijo Tomperi, Robert Reif, Slava Semushin, Vesa Pikki and Zachary Blair</para>
304309
</refsect1>
305310
<refsect1 id="see_also">
306311
<title>SEE ALSO</title>

0 commit comments

Comments
 (0)