Correct documentation and give an example (#1594)

This commit is contained in:
Crayon 2019-01-12 02:06:31 -05:00 committed by Daniel Marjamäki
parent 800076f9b8
commit d54017a0c4
1 changed files with 6 additions and 2 deletions

View File

@ -1070,16 +1070,20 @@ uninitvar</programlisting>
<programlisting>&lt;?xml version="1.0"?&gt; <programlisting>&lt;?xml version="1.0"?&gt;
&lt;suppressions&gt; &lt;suppressions&gt;
&lt;suppression&gt; &lt;suppress&gt;
&lt;id&gt;uninitvar&lt;/id&gt; &lt;id&gt;uninitvar&lt;/id&gt;
&lt;fileName&gt;src/file1.c&lt;/fileName&gt; &lt;fileName&gt;src/file1.c&lt;/fileName&gt;
&lt;lineNumber&gt;10&lt;/lineNumber&gt; &lt;lineNumber&gt;10&lt;/lineNumber&gt;
&lt;symbolName&gt;var&lt;/symbolName&gt; &lt;symbolName&gt;var&lt;/symbolName&gt;
&lt;/suppression&gt; &lt;/suppress&gt;
&lt;/suppressions&gt;</programlisting> &lt;/suppressions&gt;</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>