Fix ticket #140 (New command line option --auto-dealloc), added documentation
This commit is contained in:
parent
017e10e10b
commit
fe2aee131d
|
@ -140,6 +140,14 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
|||
found a bug. When this option is given, all messages are shown.</para>
|
||||
</listitem>
|
||||
</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>
|
||||
<term><option>--error-exitcode=[n]</option></term>
|
||||
<listitem>
|
||||
|
|
|
@ -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"
|
||||
"\n"
|
||||
"Syntax:\n"
|
||||
" cppcheck [--all] [--error-exitcode=[n]] [--force] [--help] \n"
|
||||
" [-Idir] [-j [jobs]] [--quiet] [--style] \n"
|
||||
" [--unused-functions] [--verbose] [--version] [--xml] \n"
|
||||
" [file or path1] [file or path] ...\n"
|
||||
" cppcheck [--all] [--auto-dealloc file.lst] [--error-exitcode=[n]] [--force]\n"
|
||||
" [--help] [-Idir] [-j [jobs]] [--quiet] [--style] [--unused-functions]\n"
|
||||
" [--verbose] [--version] [--xml] [file or path1] [file or path] ...\n"
|
||||
"\n"
|
||||
"If path is given instead of filename, *.cpp, *.cxx, *.cc, *.c++ and *.c files\n"
|
||||
"are checked recursively from given directory.\n\n"
|
||||
"Options:\n"
|
||||
" -a, --all Make the checking more sensitive. More bugs are\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"
|
||||
" of default 0. EXIT_FAILURE is returned\n"
|
||||
" if arguments are not valid or if no input files are\n"
|
||||
|
|
Loading…
Reference in New Issue