Correct documentation and give an example (#1594)
This commit is contained in:
parent
800076f9b8
commit
d54017a0c4
|
@ -1070,16 +1070,20 @@ uninitvar</programlisting>
|
||||||
|
|
||||||
<programlisting><?xml version="1.0"?>
|
<programlisting><?xml version="1.0"?>
|
||||||
<suppressions>
|
<suppressions>
|
||||||
<suppression>
|
<suppress>
|
||||||
<id>uninitvar</id>
|
<id>uninitvar</id>
|
||||||
<fileName>src/file1.c</fileName>
|
<fileName>src/file1.c</fileName>
|
||||||
<lineNumber>10</lineNumber>
|
<lineNumber>10</lineNumber>
|
||||||
<symbolName>var</symbolName>
|
<symbolName>var</symbolName>
|
||||||
</suppression>
|
</suppress>
|
||||||
</suppressions></programlisting>
|
</suppressions></programlisting>
|
||||||
|
|
||||||
<para>The xml format is extensible and may be extended with further
|
<para>The xml format is extensible and may be extended with further
|
||||||
attributes in the future.</para>
|
attributes in the future.</para>
|
||||||
|
|
||||||
|
<para>You can use the suppressions file like this:</para>
|
||||||
|
|
||||||
|
<programlisting>cppcheck --suppress-xml=suppressions.xml src/</programlisting>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
Loading…
Reference in New Issue