* Manual: Miscellaneous tag changes
This commit is contained in:
parent
a02d6b4619
commit
9d9d1063de
|
@ -294,7 +294,7 @@ Checking path/file2.cpp...
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>file</term>
|
<term><sgmltag class="attribute">file</sgmltag></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>filename. Both relative and absolute paths are possible</para>
|
<para>filename. Both relative and absolute paths are possible</para>
|
||||||
|
@ -302,7 +302,7 @@ Checking path/file2.cpp...
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>line</term>
|
<term><sgmltag class="attribute">line</sgmltag></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>a number</para>
|
<para>a number</para>
|
||||||
|
@ -310,7 +310,7 @@ Checking path/file2.cpp...
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>id</term>
|
<term><sgmltag class="attribute">id</sgmltag></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>id of error. These are always valid symbolnames.</para>
|
<para>id of error. These are always valid symbolnames.</para>
|
||||||
|
@ -318,17 +318,18 @@ Checking path/file2.cpp...
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>severity</term>
|
<term><sgmltag class="attribute">severity</sgmltag></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>either <literal>error</literal> or <literal>style</literal>.
|
<para>either <sgmltag class="attvalue">error</sgmltag> or
|
||||||
<literal>warning</literal> and <literal>performance</literal> are
|
<sgmltag class="attvalue">style</sgmltag>.</para>
|
||||||
saved as <literal>style</literal>.</para>
|
<para><literal>warning</literal> and <literal>performance</literal>
|
||||||
|
are saved as <sgmltag class="attvalue">style</sgmltag>.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>msg</term>
|
<term><sgmltag class="attribute">msg</sgmltag></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>the error message</para>
|
<para>the error message</para>
|
||||||
|
@ -375,8 +376,6 @@ gui/test.cpp:16: error: Mismatching allocation and deallocation: k</programlisti
|
||||||
<programlisting>Checking gui/test.cpp...
|
<programlisting>Checking gui/test.cpp...
|
||||||
gui/test.cpp,31,error,memleak,Memory leak: b
|
gui/test.cpp,31,error,memleak,Memory leak: b
|
||||||
gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocation: k</programlisting>
|
gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocation: k</programlisting>
|
||||||
|
|
||||||
<para></para>
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter>
|
<chapter>
|
||||||
|
@ -391,15 +390,15 @@ gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocati
|
||||||
[error id]:[filename2]
|
[error id]:[filename2]
|
||||||
[error id]</programlisting>
|
[error id]</programlisting>
|
||||||
|
|
||||||
<para>The <literal>error id</literal> is the id that you want to suppress.
|
<para>The <replaceable>error id</replaceable> is the id that you want to suppress.
|
||||||
The easiest way to get it is to use the <parameter class="command">--xml</parameter>
|
The easiest way to get it is to use the <parameter class="command">--xml</parameter>
|
||||||
command line flag. Copy and paste the <literal>id</literal> string from the XML
|
command line flag. Copy and paste the <replaceable>id</replaceable> string from the XML
|
||||||
output. This may be * to suppress all warnings (for a specified file or
|
output. This may be <literal>*</literal> to suppress all warnings (for a
|
||||||
files).</para>
|
specified file or files).</para>
|
||||||
|
|
||||||
<para>The <literal>filename</literal> may include the wildcard characters
|
<para>The <replaceable>filename</replaceable> may include the wildcard characters
|
||||||
* or ?, which match any sequence of characters or any single character
|
<literal>*</literal> or <literal>?</literal>, which match any sequence of
|
||||||
respectively.</para>
|
characters or any single character respectively.</para>
|
||||||
|
|
||||||
<programlisting>cppcheck --suppress=memleak:file1.cpp src/</programlisting>
|
<programlisting>cppcheck --suppress=memleak:file1.cpp src/</programlisting>
|
||||||
|
|
||||||
|
@ -415,8 +414,6 @@ uninitvar</programlisting>
|
||||||
<para>You can then use the suppressions file:</para>
|
<para>You can then use the suppressions file:</para>
|
||||||
|
|
||||||
<programlisting>cppcheck --suppressions suppressions.txt src/</programlisting>
|
<programlisting>cppcheck --suppressions suppressions.txt src/</programlisting>
|
||||||
|
|
||||||
<para></para>
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter>
|
<chapter>
|
||||||
|
|
Loading…
Reference in New Issue