manual: updated for 1.47 release

This commit is contained in:
Daniel Marjamäki 2011-02-06 12:04:54 +01:00
parent 10e82c029a
commit 5895b8f78c
1 changed files with 19 additions and 9 deletions

View File

@ -3,9 +3,9 @@
"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd"> "/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd">
<book> <book>
<bookinfo> <bookinfo>
<title>Cppcheck 1.46</title> <title>Cppcheck 1.47</title>
<date>2010-12-09</date> <date>2011-02-06</date>
</bookinfo> </bookinfo>
<chapter> <chapter>
@ -94,19 +94,20 @@ Checking path/file2.cpp...
<section> <section>
<title>Excluding a file or folder from checking</title> <title>Excluding a file or folder from checking</title>
<para>There is no command to exclude a file or folder from checking. But <para>To exclude a file or folder, there are two options.</para>
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", <para>The first option is to only provide the paths and files you want
"b" and "c". To exclude "c" this command can be used:</para> to check.</para>
<programlisting>cppcheck src/a src/b</programlisting> <programlisting>cppcheck src/a src/b</programlisting>
<para>All files under "src/a" and "src/b" are then checked.</para> <para>All files under "src/a" and "src/b" are then checked.</para>
<para>The flag <literal>--file-list</literal> might also be <para>The second option is to use <literal>-i</literal>, with it you
useful.</para> specify files/paths to ignore. With this command no files in "src/c" are
checked:</para>
<programlisting>cppcheck -isrc/c src</programlisting>
</section> </section>
<section> <section>
@ -148,6 +149,15 @@ Checking path/file2.cpp...
<para>suggestions for making the code faster</para> <para>suggestions for making the code faster</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>information</term>
<listitem>
<para>Informational messages that might be interesting. Ignore
these messages unless you really agree.</para>
</listitem>
</varlistentry>
</variablelist> </variablelist>
<remark>The performance messages are based on 'common knowledge'. It is <remark>The performance messages are based on 'common knowledge'. It is