-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
man: Add missing options and normalize option formats #7123
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,12 +93,24 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<refsynopsisdiv> | ||
<cmdsynopsis> | ||
<command>&dhpackage;</command> | ||
<arg choice="opt"> | ||
<option>--addon=<script/config></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--check-config</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--check-level=<level></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--check-library</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--clang</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--cppcheck-build-dir=<path></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>-D<id></option> | ||
</arg> | ||
|
@@ -120,10 +132,14 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<arg choice="opt"> | ||
<option>--exitcode-suppressions=<file></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--file-filter=<str></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--file-list=<file></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>-f</option> | ||
<option>--force</option> | ||
</arg> | ||
<arg choice="opt"> | ||
|
@@ -133,6 +149,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<option>--funsigned-char</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>-h</option> | ||
<option>--help</option> | ||
</arg> | ||
<arg choice="opt"> | ||
|
@@ -177,13 +194,29 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<arg choice="opt"> | ||
<option>--max-ctu-depth=<limit></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--performance-valueflow-max-if-count=<num></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--platform=<type></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--premium=<type></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--project-configuration=<config></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--project=<file></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>-q</option> | ||
<option>--quiet</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>-rp <paths></option> | ||
<option>-rp=<paths></option> | ||
<option>--relative-paths <paths></option> | ||
<option>--relative-paths=<paths></option> | ||
</arg> | ||
<arg choice="opt"> | ||
|
@@ -213,17 +246,21 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<arg choice="opt"> | ||
<option>--template='<text>'</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--template-location=<format></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--verbose</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>-v</option> | ||
<option>--version</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--xml</option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>--xml-version=<version>]</option> | ||
<option>--xml-version=<version></option> | ||
</arg> | ||
<arg choice="opt"> | ||
<option>file or path</option> | ||
|
@@ -250,6 +287,14 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<!-- Use the variablelist.term.separator and the | ||
variablelist.term.break.after parameters to | ||
control the term elements. --> | ||
<varlistentry> | ||
<term> | ||
<option>--addon=<script/config></option> | ||
</term> | ||
<listitem> | ||
<para>Run additional analysis using specified addon script or configuration file. Built-in addons include misra.py (for MISRA C 2012 checking), y2038.py (for year 2038 problems), and threadsafety.py (for thread safety issues).</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--check-config</option> | ||
|
@@ -258,6 +303,28 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<para>Check Cppcheck configuration. The normal code analysis is disabled by this flag.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--check-level=<level></option> | ||
</term> | ||
<listitem> | ||
<para>Set checking level. Available options are:</para> | ||
<variablelist> | ||
<varlistentry> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. latest git head also has "reduced" check level. |
||
<term>normal</term> | ||
<listitem> | ||
<para>Default level providing effective checking in reasonable time</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>exhaustive</term> | ||
<listitem> | ||
<para>More thorough checking that takes longer to complete</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--check-library</option> | ||
|
@@ -266,6 +333,22 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ | |
<para>Show information messages when library files have incomplete info.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--clang</option> | ||
</term> | ||
<listitem> | ||
<para>Use Clang parser instead of the built-in Cppcheck parser (experimental). Requires Clang to be installed. Can specify custom Clang executable with --clang=<path-to-clang>.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--cppcheck-build-dir=<path></option> | ||
</term> | ||
<listitem> | ||
<para>Specify a build directory for Cppcheck to save analyzer information. This enables incremental analysis and whole program analysis even with multiple threads.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-D<id></option> | ||
|
@@ -358,10 +441,10 @@ default. If used together with --max-configs=, the last option is the one that i | |
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--fsigned-char</option> | ||
<option>--fsigned-char</option> | ||
</term> | ||
<listitem> | ||
<para>Treat char type as signed. This overrides previous --platform options and is overridden by following ones.</para> | ||
<para>Treat char type as signed. This overrides previous --platform options and is overridden by following ones.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
|
@@ -385,7 +468,7 @@ default. If used together with --max-configs=, the last option is the one that i | |
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-I <dir></option> | ||
<option>-I<dir></option> | ||
</term> | ||
<listitem> | ||
<para>Give path to search for include files. Give several -I parameters to give several paths. First given path is | ||
|
@@ -412,12 +495,20 @@ First given path is searched for contained header files first. If paths are rela | |
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--config-exclude-file=<file></option> | ||
<option>--config-excludes-file=<file></option> | ||
</term> | ||
<listitem> | ||
<para>A file that contains a list of config-excludes.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--file-filter=<str></option> | ||
</term> | ||
<listitem> | ||
<para>Filter files to check based on pattern. For example: "--file-filter=src/test*" would only check files in src/ that start with "test". Filter must include the start folder in the pattern.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--include=<file></option> | ||
|
@@ -429,7 +520,7 @@ where autoconf.h needs to be included for every file compiled. Works the same wa | |
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-i <dir></option> | ||
<option>-i<dir></option> | ||
</term> | ||
<listitem> | ||
<para>Give path to ignore. Give several -i parameters to ignore several paths. Give directory name or filename with path as parameter. | ||
|
@@ -456,15 +547,15 @@ There are false positives with this option. Each result must be carefully invest | |
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-j <jobs></option> | ||
<option>-j<jobs></option> | ||
</term> | ||
<listitem> | ||
<para>Start <jobs> threads to do the checking work.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-l <load></option> | ||
<option>-l<load></option> | ||
</term> | ||
<listitem> | ||
<para>Specifies that no new threads should be started if there are other threads running and the load average is at least | ||
|
@@ -505,6 +596,14 @@ There are false positives with this option. Each result must be carefully invest | |
<para>Maximum depth in whole program analysis. Default is 2.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--performance-valueflow-max-if-count=<num></option> | ||
</term> | ||
<listitem> | ||
<para>Limit the maximum number of if statements in a function for ValueFlow analysis. When exceeded, some data flow analysis will be limited in that function to avoid performance issues.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--platform=<type></option> | ||
|
@@ -516,6 +615,62 @@ There are false positives with this option. Each result must be carefully invest | |
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--premium=<type></option> | ||
</term> | ||
<listitem> | ||
<para>Enable premium analysis features. Available types:</para> | ||
<variablelist> | ||
<varlistentry> | ||
<term>bughunting</term> | ||
<listitem> | ||
<para>Enhanced bug detection with higher false positive rate</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>autosar</term> | ||
<listitem> | ||
<para>Check AUTOSAR coding guidelines</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>cert-c</term> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the term is |
||
<listitem> | ||
<para>Check CERT C coding standard</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>cert-c++</term> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the term is |
||
<listitem> | ||
<para>Check CERT C++ coding standard</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>misra-c++-2008</term> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lots of missing premium terms:
|
||
<listitem> | ||
<para>Check MISRA C++ 2008 coding guidelines</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--project=<file></option> | ||
</term> | ||
<listitem> | ||
<para>Import project file (solution, project, or compile database). This can be used to import Visual Studio solutions, compile databases from CMake, or Cppcheck project files.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--project-configuration=<config></option> | ||
</term> | ||
<listitem> | ||
<para>Specify a specific project configuration for project file analysis. For example: "--project-configuration=Release|Win32" when analyzing Visual Studio projects.</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-q</option> | ||
|
@@ -529,13 +684,13 @@ There are false positives with this option. Each result must be carefully invest | |
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-rp</option> | ||
<option>-rp <paths></option> | ||
</term> | ||
<term> | ||
<option>-rp=<paths></option> | ||
</term> | ||
<term> | ||
<option>--relative-paths;</option> | ||
<option>--relative-paths <paths></option> | ||
</term> | ||
<term> | ||
<option>--relative-paths=<paths></option> | ||
|
@@ -624,6 +779,14 @@ There are false positives with this option. Each result must be carefully invest | |
<para>Format the error messages. E.g. '{file}:{line},{severity},{id},{message}' or '{file}({line}):({severity}) {message}'. Pre-defined templates: gcc, vs</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>--template-location=<format></option> | ||
</term> | ||
<listitem> | ||
<para>Customize output format for additional location messages in multi-line warnings. Format specifiers: {file}, {line}, {column}, {info}, {code}. Example: "{file}:{line}: note: {info}\n{code}"</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term> | ||
<option>-v</option> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "-v" option is misplaced, it's the same as "--verbose".