Skip to content

Commit 2e03e60

Browse files
author
Daniel Marjamäki
committed
Manual: Better description of -D. As suggested by kwin. Ticket cppcheck-opensource#1212
1 parent 4b0e3ed commit 2e03e60

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

man/manual.docbook

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd">
44
<book>
55
<bookinfo>
6-
<title>Cppcheck 1.43</title>
6+
<title>Cppcheck 1.44</title>
77

8-
<date>2010-05-08</date>
8+
<date>2010-07-10</date>
99
</bookinfo>
1010

1111
<chapter>
@@ -165,9 +165,14 @@ Checking path/file2.cpp...
165165
<para>But if you want to manually limit the checking you can do so with
166166
<literal>-D</literal>.</para>
167167

168-
<para>For example, if you want to limit the checking so the only
169-
configuration to check should be "DEBUG=1;__cplusplus" then something like
170-
this can be used:</para>
168+
<para>Beware that only the macros, which are given here and the macros
169+
defined in source files and known header files are considered. That
170+
excludes all the macros defined in some system header files, which are by
171+
default not examined by cppcheck.</para>
172+
173+
<para>The usage: if you, for example, want to limit the checking so the
174+
only configuration to check should be "DEBUG=1;__cplusplus" then something
175+
like this can be used:</para>
171176

172177
<programlisting>cppcheck -DDEBUG=1 -D__cplusplus path</programlisting>
173178
</chapter>
@@ -220,7 +225,7 @@ Checking path/file2.cpp...
220225
<term>severity</term>
221226

222227
<listitem>
223-
<para>one of: error / possible error / style / possible style</para>
228+
<para>either error or style</para>
224229
</listitem>
225230
</varlistentry>
226231

0 commit comments

Comments
 (0)