Manual: Use <filename> tag for files and directories

This commit is contained in:
Tim Gerundt 2011-06-30 20:58:43 +02:00
parent 6375e1d3dc
commit 4a25327b57
2 changed files with 6 additions and 5 deletions

View File

@ -106,11 +106,12 @@ Checking path/file2.cpp...
<programlisting>cppcheck src/a src/b</programlisting>
<para>All files under "src/a" and "src/b" are then checked.</para>
<para>All files under <filename class="directory">src/a</filename> and
<filename class="directory">src/b</filename> are then checked.</para>
<para>The second option is to use <literal>-i</literal>, with it you
specify files/paths to ignore. With this command no files in "src/c" are
checked:</para>
specify files/paths to ignore. With this command no files in
<filename class="directory">src/c</filename> are checked:</para>
<programlisting>cppcheck -isrc/c src</programlisting>
</section>

View File

@ -85,7 +85,7 @@
free(p);
}</programlisting>
<para>Save that code as <literal>dealloc.cpp</literal> and then use
<para>Save that code as <filename>dealloc.cpp</filename> and then use
<literal>cppcheck --rule=".+" dealloc.cpp</literal>:</para>
<programlisting>$ ./cppcheck --rule=".+" dealloc.cpp
@ -134,7 +134,7 @@ Checking dealloc.cpp...
&lt;/message&gt;
&lt;/rule&gt;</programlisting>
<para>If you save that xml data in <literal>dealloc.rule</literal> you
<para>If you save that xml data in <filename>dealloc.rule</filename> you
can test this rule:</para>
<programlisting>$ cppcheck --rule-file=dealloc.rule dealloc.cpp