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"?>
|
||||
<suppressions>
|
||||
<suppression>
|
||||
<suppress>
|
||||
<id>uninitvar</id>
|
||||
<fileName>src/file1.c</fileName>
|
||||
<lineNumber>10</lineNumber>
|
||||
<symbolName>var</symbolName>
|
||||
</suppression>
|
||||
</suppress>
|
||||
</suppressions></programlisting>
|
||||
|
||||
<para>The xml format is extensible and may be extended with further
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue