Manual: Add internal links
This commit is contained in:
parent
9d9d1063de
commit
8edf654d24
|
@ -250,7 +250,7 @@ Checking path/file2.cpp...
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter>
|
<chapter id="preprocessor-configurations">
|
||||||
<title>Preprocessor configurations</title>
|
<title>Preprocessor configurations</title>
|
||||||
|
|
||||||
<para>By default Cppcheck will check all preprocessor configurations
|
<para>By default Cppcheck will check all preprocessor configurations
|
||||||
|
@ -263,11 +263,11 @@ Checking path/file2.cpp...
|
||||||
<para>Beware that only the macros, which are given here and the macros
|
<para>Beware that only the macros, which are given here and the macros
|
||||||
defined in source files and known header files are considered. That
|
defined in source files and known header files are considered. That
|
||||||
excludes all the macros defined in some system header files, which are by
|
excludes all the macros defined in some system header files, which are by
|
||||||
default not examined by cppcheck.</para>
|
default not examined by Cppcheck.</para>
|
||||||
|
|
||||||
<para>The usage: if you, for example, want to limit the checking so the
|
<para>The usage: if you, for example, want to limit the checking so the
|
||||||
only configuration to check should be "DEBUG=1;__cplusplus" then something
|
only configuration to check should be <literal>DEBUG=1;__cplusplus</literal>
|
||||||
like this can be used:</para>
|
then something like this can be used:</para>
|
||||||
|
|
||||||
<programlisting>cppcheck -DDEBUG=1 -D__cplusplus path</programlisting>
|
<programlisting>cppcheck -DDEBUG=1 -D__cplusplus path</programlisting>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
@ -617,9 +617,9 @@ htmlreport/cppcheck-htmlreport --file=err.xml --report-dir=test1 --source-dir=.<
|
||||||
recommended that this known functionality is redefined. But feel free to
|
recommended that this known functionality is redefined. But feel free to
|
||||||
try it.</para>
|
try it.</para>
|
||||||
|
|
||||||
<para>As you can read in chapter 3 in this manual the default is that
|
<para>As you can read in <link linkend="preprocessor-configurations">chapter
|
||||||
Cppcheck checks all configurations. So only provide preprocessor defines
|
3</link> in this manual the default is that Cppcheck checks all configurations.
|
||||||
if you want to limit the checking.</para>
|
So only provide preprocessor defines if you want to limit the checking.</para>
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section>
|
<section id="writing-rules-1">
|
||||||
<title>Part 1 - Getting started</title>
|
<title>Part 1 - Getting started</title>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section>
|
<section id="writing-rules-2">
|
||||||
<title>Part 2 - The Cppcheck data representation</title>
|
<title>Part 2 - The Cppcheck data representation</title>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section>
|
<section id="writing-rules-3">
|
||||||
<title>Part 3 - Introduction to writing rules with C++</title>
|
<title>Part 3 - Introduction to writing rules with C++</title>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
@ -83,9 +83,9 @@ void CheckOther::divisionByZeroError()
|
||||||
<section>
|
<section>
|
||||||
<title>Condition before deallocation</title>
|
<title>Condition before deallocation</title>
|
||||||
|
|
||||||
<para>In the first <literal>Writing rules</literal> article I described a
|
<para>In the first <link linkend="writing-rules-1">Writing rules</link> part
|
||||||
rule that looks for redundant conditions. Here is the regular expression
|
I described a rule that looks for redundant conditions. Here is the regular
|
||||||
that was shown:</para>
|
expression that was shown:</para>
|
||||||
|
|
||||||
<programlisting>if \( p \) { free \( p \) ; }</programlisting>
|
<programlisting>if \( p \) { free \( p \) ; }</programlisting>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue