diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 57d5dd49c..d28d0ada5 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -760,7 +760,8 @@ void CmdLineParser::PrintHelp() " by providing an implementation for them.\n" " --check-config Check cppcheck configuration. The normal code\n" " analysis is disabled by this flag.\n" - " --check-library Warn when library files have incomplete info.\n" + " --check-library Show information messages when library files have\n" + " incomplete info.\n" " -D Define preprocessor symbol. Unless --max-configs or\n" " --force is used, Cppcheck will only check the given\n" " configuration when -D is used.\n" @@ -842,6 +843,8 @@ void CmdLineParser::PrintHelp() " --language=, -x \n" " Forces cppcheck to check all files as the given\n" " language. Valid values are: c, c++\n" + " --library=\n" + " Use library configuration.\n" " --max-configs=\n" " Maximum number of configurations to check in a file\n" " before skipping it. Default is '12'. If used together\n" diff --git a/man/cppcheck.1.xml b/man/cppcheck.1.xml index 7d6555381..df0f266d9 100644 --- a/man/cppcheck.1.xml +++ b/man/cppcheck.1.xml @@ -104,6 +104,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ &dhpackage; + @@ -119,6 +120,8 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + + @@ -168,6 +171,12 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ Check Cppcheck configuration. The normal code analysis is disabled by this flag. + + + + Show information messages when library files have incomplete info. + + @@ -190,13 +199,23 @@ Example: '-UDEBUG' all - Enable all checks + Enable all checks. It is recommended to only use + --enable=all when the whole program is scanned, because this + enables unusedFunction. + + + + warning + + Enable warning messages style - Check coding style + Enable all coding style checks. All messages with the + severities 'style', 'performance' and 'portability' are + enabled. @@ -220,7 +239,8 @@ Example: '-UDEBUG' unusedFunction - Check for unused functions + Check for unused functions. It is recommend to only + enable this when the whole program is scanned @@ -317,6 +337,19 @@ There are false positives with this option. Each result must be carefully invest Start <jobs> threads to do the checking work. + + + + Forces cppcheck to check all files as the given language. Valid + values are: c, c++ + + + + + + Use library configuration. + +