man: tabs to spaces, remove trailing spaces and extra empty lines at the end of files

This commit is contained in:
XhmikosR 2012-09-22 21:41:13 +03:00 committed by PKEuS
parent 2542c76ecd
commit 5893b0dad3
3 changed files with 31 additions and 32 deletions

View File

@ -88,7 +88,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
the Free Software Foundation.</para> the Free Software Foundation.</para>
<para>On Debian systems, the complete text of the GNU General Public <para>On Debian systems, the complete text of the GNU General Public
License can be found in License can be found in
<filename>/usr/share/common-licenses/GPL-3</filename>.</para> <filename>/usr/share/common-licenses/GPL-3</filename>.</para>
</legalnotice> </legalnotice>
</refentryinfo> </refentryinfo>
<refmeta> <refmeta>
@ -122,10 +122,10 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
<arg choice="opt"><option>--max-configs=&lt;limit&gt;</option></arg> <arg choice="opt"><option>--max-configs=&lt;limit&gt;</option></arg>
<arg choice="opt"><option>--platform=&lt;type&gt;</option></arg> <arg choice="opt"><option>--platform=&lt;type&gt;</option></arg>
<arg choice="opt"><option>--quiet</option></arg> <arg choice="opt"><option>--quiet</option></arg>
<arg choice="opt"><option>--relative-paths=&lt;paths&gt;</option></arg> <arg choice="opt"><option>--relative-paths=&lt;paths&gt;</option></arg>
<arg choice="opt"><option>--report-progress</option></arg> <arg choice="opt"><option>--report-progress</option></arg>
<arg choice="opt"><option>--rule=&lt;rule&gt;</option></arg> <arg choice="opt"><option>--rule=&lt;rule&gt;</option></arg>
<arg choice="opt"><option>--rule-file=&lt;file&gt;</option></arg> <arg choice="opt"><option>--rule-file=&lt;file&gt;</option></arg>
<arg choice="opt"><option>--style</option></arg> <arg choice="opt"><option>--style</option></arg>
<arg choice="opt"><option>--std=&lt;id&gt;</option></arg> <arg choice="opt"><option>--std=&lt;id&gt;</option></arg>
<arg choice="opt"><option>--suppress=&lt;spec&gt;</option></arg> <arg choice="opt"><option>--suppress=&lt;spec&gt;</option></arg>
@ -141,11 +141,11 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
</refsynopsisdiv> </refsynopsisdiv>
<refsect1 id="description"> <refsect1 id="description">
<title>DESCRIPTION</title> <title>DESCRIPTION</title>
<para>Cppcheck is a command-line tool that tries to detect bugs that your C/C++ <para>Cppcheck is a command-line tool that tries to detect bugs that your C/C++
compiler doesn't see. It is versatile, and can check non-standard code compiler doesn't see. It is versatile, and can check non-standard code
including various compiler extensions, inline assembly code, etc. including various compiler extensions, inline assembly code, etc.
Its internal preprocessor can handle includes, macros, and several Its internal preprocessor can handle includes, macros, and several
preprocessor commands. While Cppcheck is highly configurable, preprocessor commands. While Cppcheck is highly configurable,
you can start using it just by giving it a path to the source code. you can start using it just by giving it a path to the source code.
</para> </para>
</refsect1> </refsect1>
@ -161,24 +161,24 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
<listitem> <listitem>
<para>This allows you to provide information about functions by providing an implementation for these.</para> <para>This allows you to provide information about functions by providing an implementation for these.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--check-config</option></term> <term><option>--check-config</option></term>
<listitem> <listitem>
<para>Check Cppcheck configuration. The normal code analysis is disabled by this flag.</para> <para>Check Cppcheck configuration. The normal code analysis is disabled by this flag.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>-D&lt;id&gt;</option></term> <term><option>-D&lt;id&gt;</option></term>
<listitem> <listitem>
<para>By default Cppcheck checks all configurations. Use -D to limit the checking. When -D is used the checking is limited to the given configuration. <para>By default Cppcheck checks all configurations. Use -D to limit the checking. When -D is used the checking is limited to the given configuration.
Example: -DDEBUG=1 -D__cplusplus</para> Example: -DDEBUG=1 -D__cplusplus</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>-U&lt;id&gt;</option></term> <term><option>-U&lt;id&gt;</option></term>
<listitem> <listitem>
<para>By default Cppcheck checks all configurations. Use '-U' to explicitly hide certain #ifdef &lt;id&gt; code paths from checking. <para>By default Cppcheck checks all configurations. Use '-U' to explicitly hide certain #ifdef &lt;id&gt; code paths from checking.
Example: '-UDEBUG'</para> Example: '-UDEBUG'</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -210,7 +210,7 @@ Example: '-UDEBUG'</para>
<glossdef> <glossdef>
<para>Enable portability messages</para> <para>Enable portability messages</para>
</glossdef> </glossdef>
</glossentry> </glossentry>
<glossentry> <glossentry>
<glossterm>information</glossterm> <glossterm>information</glossterm>
<glossdef> <glossdef>
@ -228,8 +228,8 @@ Example: '-UDEBUG'</para>
<glossdef> <glossdef>
<para>Warn if there are missing includes. For detailed information use --check-config</para> <para>Warn if there are missing includes. For detailed information use --check-config</para>
</glossdef> </glossdef>
</glossentry> </glossentry>
</glosslist> </glosslist>
By default none of the additional checks are enabled. Several ids can be given if you separate them with commas, e.g. --enable=style,unusedFunction. See also --std By default none of the additional checks are enabled. Several ids can be given if you separate them with commas, e.g. --enable=style,unusedFunction. See also --std
</para> </para>
</listitem> </listitem>
@ -248,7 +248,7 @@ Example: '-UDEBUG'</para>
<listitem> <listitem>
<para>Print a list of all possible error messages in XML format.</para> <para>Print a list of all possible error messages in XML format.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--exitcode-suppressions=&lt;file&gt;</option></term> <term><option>--exitcode-suppressions=&lt;file&gt;</option></term>
<listitem> <listitem>
@ -293,17 +293,17 @@ First given path is searched for contained header files first. If paths are rela
<varlistentry> <varlistentry>
<term><option>-i &lt;dir&gt;</option></term> <term><option>-i &lt;dir&gt;</option></term>
<listitem> <listitem>
<para>Give path to ignore. Give several -i parameters to ignore several paths. Give directory name or filename with path as parameter. <para>Give path to ignore. Give several -i parameters to ignore several paths. Give directory name or filename with path as parameter.
Directory name is matched to all parts of the path.</para> Directory name is matched to all parts of the path.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--inconclusive</option></term> <term><option>--inconclusive</option></term>
<listitem> <listitem>
<para>Allow that Cppcheck reports even though the analysis is inconclusive. <para>Allow that Cppcheck reports even though the analysis is inconclusive.
There are false positives with this option. Each result must be carefully investigated before you know if it is good or bad.</para> There are false positives with this option. Each result must be carefully investigated before you know if it is good or bad.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--inline-suppr</option></term> <term><option>--inline-suppr</option></term>
<listitem> <listitem>
@ -352,18 +352,18 @@ There are false positives with this option. Each result must be carefully invest
<glossdef> <glossdef>
<para>32 bit Windows UNICODE character encoding</para> <para>32 bit Windows UNICODE character encoding</para>
</glossdef> </glossdef>
</glossentry> </glossentry>
<glossentry> <glossentry>
<glossterm>win64</glossterm> <glossterm>win64</glossterm>
<glossdef> <glossdef>
<para>64 bit Windows</para> <para>64 bit Windows</para>
</glossdef> </glossdef>
</glossentry> </glossentry>
</glosslist> </glosslist>
By default the platform which was used to compile Cppcheck is used. By default the platform which was used to compile Cppcheck is used.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>-q</option></term> <term><option>-q</option></term>
<term><option>--quiet</option></term> <term><option>--quiet</option></term>
@ -391,13 +391,13 @@ There are false positives with this option. Each result must be carefully invest
<listitem> <listitem>
<para>Match regular expression to create your own checks. E.g. rule &quot;/ 0&quot; can be used to check division by zero.</para> <para>Match regular expression to create your own checks. E.g. rule &quot;/ 0&quot; can be used to check division by zero.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--rule-file=&lt;file&gt;</option></term> <term><option>--rule-file=&lt;file&gt;</option></term>
<listitem> <listitem>
<para>Use given rule XML file. See https://sourceforge.net/projects/cppcheck/files/Articles/ for more info about the syntax.</para> <para>Use given rule XML file. See https://sourceforge.net/projects/cppcheck/files/Articles/ for more info about the syntax.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>-s</option></term> <term><option>-s</option></term>
<term><option>--style</option></term> <term><option>--style</option></term>
@ -446,11 +446,11 @@ There are false positives with this option. Each result must be carefully invest
<para>C++ code is C++11 compatible (default)</para> <para>C++ code is C++11 compatible (default)</para>
</glossdef> </glossdef>
</glossentry> </glossentry>
</glosslist> </glosslist>
Example to set more than one standards: 'cppcheck --std=c99 --std=posix file.cpp' Example to set more than one standards: 'cppcheck --std=c99 --std=posix file.cpp'
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>--suppress=&lt;spec&gt;</option></term> <term><option>--suppress=&lt;spec&gt;</option></term>
<listitem> <listitem>

View File

@ -663,10 +663,10 @@ int a(int sz)
<programlisting>Usage: cppcheck-htmlreport [options] <programlisting>Usage: cppcheck-htmlreport [options]
Options: Options:
-h, --help show this help message and exit -h, --help show this help message and exit
--file=FILE The cppcheck xml output file to read defects from. --file=FILE The cppcheck xml output file to read defects from.
Default is reading from stdin. Default is reading from stdin.
--report-dir=REPORT_DIR --report-dir=REPORT_DIR
The directory where the html report content is written. The directory where the html report content is written.
--source-dir=SOURCE_DIR --source-dir=SOURCE_DIR
Base directory where source code files can be found.</programlisting> Base directory where source code files can be found.</programlisting>
@ -746,4 +746,3 @@ htmlreport/cppcheck-htmlreport --file=err.xml --report-dir=test1 --source-dir=.<
</section> </section>
</chapter> </chapter>
</book> </book>

View File

@ -76,7 +76,7 @@
<para>Save that code as <filename>dealloc.cpp</filename> and then use <para>Save that code as <filename>dealloc.cpp</filename> and then use
<command>cppcheck --rule=".+" dealloc.cpp</command>:</para> <command>cppcheck --rule=".+" dealloc.cpp</command>:</para>
<programlisting>$ ./cppcheck --rule=".+" dealloc.cpp <programlisting>$ ./cppcheck --rule=".+" dealloc.cpp
Checking dealloc.cpp... Checking dealloc.cpp...
[dealloc.cpp:1]: (style) found ' void f ( ) { if ( p ) { free ( p ) ; } }'</programlisting> [dealloc.cpp:1]: (style) found ' void f ( ) { if ( p ) { free ( p ) ; } }'</programlisting>