doc: added a little section about excluding a file or folder from checking

This commit is contained in:
Daniel Marjamäki 2010-08-12 21:51:20 +02:00
parent 6cb7fefdbf
commit 794c0a8f78
1 changed files with 19 additions and 1 deletions

View File

@ -91,6 +91,24 @@ Checking path/file2.cpp...
2/2 files checked 100% done</programlisting>
</section>
<section>
<title>Excluding a file or folder from checking</title>
<para>There is no command to exclude a file or folder from checking. But
you can exclude a file or folder by being more careful when including
files and folders in the checking.</para>
<para>Imagine for example that the folder "src" contain the folders "a",
"b" and "c". To exclude "c" this command can be used:</para>
<programlisting>cppcheck src/a src/b</programlisting>
<para>All files under "src/a" and "src/b" are then checked.</para>
<para>The flag <literal>--file-list</literal> might also be
useful.</para>
</section>
<section>
<title>Stylistic issues</title>
@ -313,7 +331,7 @@ gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocati
<para>If you want to filter out certain errors you can suppress these.
First you need to create a suppressions file. The format is:</para>
<programlisting>[error id]:[filename]
<programlisting>[error id]:[filename]:[line]
[error id]:[filename2]
[error id]</programlisting>