Manual: Better description of -D. As suggested by kwin. Ticket #1212

This commit is contained in:
Daniel Marjamäki 2010-07-10 08:12:23 +02:00
parent 4b0e3edfa4
commit 2e03e60218
1 changed files with 11 additions and 6 deletions

View File

@ -3,9 +3,9 @@
"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd"> "/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd">
<book> <book>
<bookinfo> <bookinfo>
<title>Cppcheck 1.43</title> <title>Cppcheck 1.44</title>
<date>2010-05-08</date> <date>2010-07-10</date>
</bookinfo> </bookinfo>
<chapter> <chapter>
@ -165,9 +165,14 @@ Checking path/file2.cpp...
<para>But if you want to manually limit the checking you can do so with <para>But if you want to manually limit the checking you can do so with
<literal>-D</literal>.</para> <literal>-D</literal>.</para>
<para>For example, if you want to limit the checking so the only <para>Beware that only the macros, which are given here and the macros
configuration to check should be "DEBUG=1;__cplusplus" then something like defined in source files and known header files are considered. That
this can be used:</para> excludes all the macros defined in some system header files, which are by
default not examined by cppcheck.</para>
<para>The usage: if you, for example, want to limit the checking so the
only configuration to check should be "DEBUG=1;__cplusplus" then something
like this can be used:</para>
<programlisting>cppcheck -DDEBUG=1 -D__cplusplus path</programlisting> <programlisting>cppcheck -DDEBUG=1 -D__cplusplus path</programlisting>
</chapter> </chapter>
@ -220,7 +225,7 @@ Checking path/file2.cpp...
<term>severity</term> <term>severity</term>
<listitem> <listitem>
<para>one of: error / possible error / style / possible style</para> <para>either error or style</para>
</listitem> </listitem>
</varlistentry> </varlistentry>