Change case for some standardized words
This commit is contained in:
parent
7d1b2254d3
commit
7d3f6f69f0
|
@ -30,7 +30,7 @@
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Cppcheck should work on any platform that has sufficient cpu and
|
<para>Cppcheck should work on any platform that has sufficient CPU and
|
||||||
memory.</para>
|
memory.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
@ -77,12 +77,12 @@
|
||||||
<section>
|
<section>
|
||||||
<title>Checking all files in a folder</title>
|
<title>Checking all files in a folder</title>
|
||||||
|
|
||||||
<para>Normally a program has many sourcefiles. And you want to check
|
<para>Normally a program has many source files. And you want to check
|
||||||
them all. Cppcheck can check all sourcefiles in a directory:</para>
|
them all. Cppcheck can check all source files in a directory:</para>
|
||||||
|
|
||||||
<programlisting>cppcheck path</programlisting>
|
<programlisting>cppcheck path</programlisting>
|
||||||
|
|
||||||
<para>If "path" is a folder then cppcheck will check all sourcefiles in
|
<para>If "path" is a folder then cppcheck will check all source files in
|
||||||
this folder.</para>
|
this folder.</para>
|
||||||
|
|
||||||
<programlisting>Checking path/file1.cpp...
|
<programlisting>Checking path/file1.cpp...
|
||||||
|
@ -264,7 +264,7 @@ Checking path/file2.cpp...
|
||||||
|
|
||||||
<programlisting>cppcheck --xml file1.cpp</programlisting>
|
<programlisting>cppcheck --xml file1.cpp</programlisting>
|
||||||
|
|
||||||
<para>The xml format is:</para>
|
<para>The XML format is:</para>
|
||||||
|
|
||||||
<programlisting><?xml version="1.0"?>
|
<programlisting><?xml version="1.0"?>
|
||||||
<results>
|
<results>
|
||||||
|
@ -372,7 +372,7 @@ gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocati
|
||||||
|
|
||||||
<para>The <literal>error id</literal> is the id that you want to suppress.
|
<para>The <literal>error id</literal> is the id that you want to suppress.
|
||||||
The easiest way to get it is to use the <literal>--xml</literal> command
|
The easiest way to get it is to use the <literal>--xml</literal> command
|
||||||
line flag. Copy and paste the <literal>id</literal> string from the xml
|
line flag. Copy and paste the <literal>id</literal> string from the XML
|
||||||
output.</para>
|
output.</para>
|
||||||
|
|
||||||
<para>Here is an example:</para>
|
<para>Here is an example:</para>
|
||||||
|
@ -396,7 +396,7 @@ uninitvar</programlisting>
|
||||||
some tweaking you can improve the checking.</para>
|
some tweaking you can improve the checking.</para>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>Userdefined allocation/deallocation functions</title>
|
<title>User defined allocation/deallocation functions</title>
|
||||||
|
|
||||||
<para><literal>Cppcheck</literal> understands many common allocation and
|
<para><literal>Cppcheck</literal> understands many common allocation and
|
||||||
deallocation functions. But not all.</para>
|
deallocation functions. But not all.</para>
|
||||||
|
@ -493,13 +493,13 @@ int a(int sz)
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter>
|
<chapter>
|
||||||
<title>Html report</title>
|
<title>HTML report</title>
|
||||||
|
|
||||||
<para>You can convert the xml output from cppcheck into a html report.
|
<para>You can convert the XML output from cppcheck into a HTML report.
|
||||||
You'll need python and the pygments module
|
You'll need Python and the pygments module
|
||||||
(<uri>http://pygments.org/</uri>) for this to work. In the Cppcheck source
|
(<uri>http://pygments.org/</uri>) for this to work. In the Cppcheck source
|
||||||
tree there is a folder "htmlreport" that contains a script that transforms
|
tree there is a folder "htmlreport" that contains a script that transforms
|
||||||
a Cppcheck xml file into html output.</para>
|
a Cppcheck XML file into HTML output.</para>
|
||||||
|
|
||||||
<para>This command generates the help screen:</para>
|
<para>This command generates the help screen:</para>
|
||||||
|
|
||||||
|
@ -550,7 +550,7 @@ htmlreport/cppcheck-htmlreport --file=err.xml --report-dir=test1 --source-dir=.<
|
||||||
<para>You can show/hide certain types of messages through the
|
<para>You can show/hide certain types of messages through the
|
||||||
<literal>View</literal> menu.</para>
|
<literal>View</literal> menu.</para>
|
||||||
|
|
||||||
<para>Results can be saved to an xml file that can later be opened. See
|
<para>Results can be saved to an XML file that can later be opened. See
|
||||||
<literal>Save results to file</literal> and <literal>Open
|
<literal>Save results to file</literal> and <literal>Open
|
||||||
XML</literal>.</para>
|
XML</literal>.</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue