Example of ignoring multiple directories

Add documentation for showing how to ignore multiple directories.
Also highlight the fact that the -i option does not currently work in conjunction with the --project option.
This commit is contained in:
Matt Johnson 2017-01-06 13:16:06 +09:00 committed by GitHub
parent 8eeb09ba88
commit 6bf77955bd
1 changed files with 8 additions and 0 deletions

View File

@ -127,6 +127,14 @@ Checking path/file2.cpp...
class="directory">src/c</filename> are checked:</para>
<programlisting>cppcheck -isrc/c src</programlisting>
<para>This option does not currently work with the
<parameter class="command">--project</parameter> option and is only
valid when supplying an input directory.To ignore multiple directories
supply the <parameter class="command">-i</parameter> multiple times.
The following command ignores both the src/b and src/c directories.</para>
<programlisting>cppcheck -isrc/b -isrc/c</programlisting>
</section>
<section>