Fix ticket #140 (New command line option --auto-dealloc), added documentation
This commit is contained in:
parent
017e10e10b
commit
fe2aee131d
|
@ -47,7 +47,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
|
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
|
||||||
<!ENTITY dhfirstname "Reijo">
|
<!ENTITY dhfirstname "Reijo">
|
||||||
<!ENTITY dhsurname "Tomperi">
|
<!ENTITY dhsurname "Tomperi">
|
||||||
<!-- dhusername could also be set to "&firstname; &surname;". -->
|
<!-- dhusername could also be set to "&firstname; &surname;". -->
|
||||||
<!ENTITY dhusername "&dhfirstname; &dhsurname;">
|
<!ENTITY dhusername "&dhfirstname; &dhsurname;">
|
||||||
<!ENTITY dhemail "aggro80@users.sourceforge.net">
|
<!ENTITY dhemail "aggro80@users.sourceforge.net">
|
||||||
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
|
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
|
||||||
|
@ -136,16 +136,24 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
<term><option>-a</option></term>
|
<term><option>-a</option></term>
|
||||||
<term><option>--all</option></term>
|
<term><option>--all</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Normally a message is only shown if cppcheck is sure it has
|
<para>Normally a message is only shown if cppcheck is sure it has
|
||||||
found a bug. When this option is given, all messages are shown.</para>
|
found a bug. When this option is given, all messages are shown.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--auto-dealloc</option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>Suppress warnings about classes that have automatic deallocation</para>
|
||||||
|
<para>The classnames must be provided in plain text - one classname / line - in a .lst file. </para>
|
||||||
|
<para>This option can be given several times, allowing you to provide several .lst files.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--error-exitcode=[n]</option></term>
|
<term><option>--error-exitcode=[n]</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>If errors are found, integer [n] is returned instead of default 0.
|
<para>If errors are found, integer [n] is returned instead of default 0.
|
||||||
EXIT_FAILURE is returned if arguments are not valid or if no input files are
|
EXIT_FAILURE is returned if arguments are not valid or if no input files are
|
||||||
provided. Note that your operating system can modify this value, e.g.
|
provided. Note that your operating system can modify this value, e.g.
|
||||||
256 can become 0.</para>
|
256 can become 0.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -153,7 +161,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||||
<term><option>-f</option></term>
|
<term><option>-f</option></term>
|
||||||
<term><option>--force</option></term>
|
<term><option>--force</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Force checking of files that have a lot of configurations. Error is printed if such a file is found so there is no reason to use this by
|
<para>Force checking of files that have a lot of configurations. Error is printed if such a file is found so there is no reason to use this by
|
||||||
default.</para>
|
default.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -167,7 +175,7 @@ default.</para>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>-I [dir]</option></term>
|
<term><option>-I [dir]</option></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Give include path. Give several -I parameters to give several paths. First given path is checked first. If paths are relative to source
|
<para>Give include path. Give several -I parameters to give several paths. First given path is checked first. If paths are relative to source
|
||||||
files, this is not needed.</para>
|
files, this is not needed.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -226,5 +234,5 @@ files, this is not needed.</para>
|
||||||
<title>SEE ALSO</title>
|
<title>SEE ALSO</title>
|
||||||
<!-- In alpabetical order. -->
|
<!-- In alpabetical order. -->
|
||||||
<para>Full list of features: http://cppcheck.wiki.sourceforge.net/</para>
|
<para>Full list of features: http://cppcheck.wiki.sourceforge.net/</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
</refentry>
|
</refentry>
|
||||||
|
|
|
@ -235,16 +235,21 @@ std::string CppCheck::parseFromArgs(int argc, const char* const argv[])
|
||||||
oss << "Cppcheck - A tool for static C/C++ code analysis\n"
|
oss << "Cppcheck - A tool for static C/C++ code analysis\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Syntax:\n"
|
"Syntax:\n"
|
||||||
" cppcheck [--all] [--error-exitcode=[n]] [--force] [--help] \n"
|
" cppcheck [--all] [--auto-dealloc file.lst] [--error-exitcode=[n]] [--force]\n"
|
||||||
" [-Idir] [-j [jobs]] [--quiet] [--style] \n"
|
" [--help] [-Idir] [-j [jobs]] [--quiet] [--style] [--unused-functions]\n"
|
||||||
" [--unused-functions] [--verbose] [--version] [--xml] \n"
|
" [--verbose] [--version] [--xml] [file or path1] [file or path] ...\n"
|
||||||
" [file or path1] [file or path] ...\n"
|
|
||||||
"\n"
|
"\n"
|
||||||
"If path is given instead of filename, *.cpp, *.cxx, *.cc, *.c++ and *.c files\n"
|
"If path is given instead of filename, *.cpp, *.cxx, *.cc, *.c++ and *.c files\n"
|
||||||
"are checked recursively from given directory.\n\n"
|
"are checked recursively from given directory.\n\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -a, --all Make the checking more sensitive. More bugs are\n"
|
" -a, --all Make the checking more sensitive. More bugs are\n"
|
||||||
" detected, but there are also more false positives\n"
|
" detected, but there are also more false positives\n"
|
||||||
|
" --auto-dealloc file Suppress warnings about classes that have automatic\n"
|
||||||
|
" deallocation.\n"
|
||||||
|
" The classnames must be provided in plain text - one\n"
|
||||||
|
" classname / line - in a .lst file.\n"
|
||||||
|
" This option can be used several times, allowing you to\n"
|
||||||
|
" specify several .lst files.\n"
|
||||||
" --error-exitcode=[n] If errors are found, integer [n] is returned instead\n"
|
" --error-exitcode=[n] If errors are found, integer [n] is returned instead\n"
|
||||||
" of default 0. EXIT_FAILURE is returned\n"
|
" of default 0. EXIT_FAILURE is returned\n"
|
||||||
" if arguments are not valid or if no input files are\n"
|
" if arguments are not valid or if no input files are\n"
|
||||||
|
|
Loading…
Reference in New Issue