Skip to content

Commit

Permalink
update cppcheck manual and cli usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Dec 27, 2024
1 parent 3dc65d1 commit a450db3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cli/cmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1779,13 +1779,13 @@ void CmdLineParser::printHelp() const
" --report-progress Report progress messages while checking a file (single job only).\n"
" --report-type=<type> Add guideline and classification fields for specified coding standard.\n"
" The available report types are:\n"
" * normal (default, only show cppcheck error ID and severity)\n"
" * autosar\n"
" * certC\n"
" * certCpp\n"
" * misraC\n"
" * misraCpp2008\n"
" * misraCpp2023\n"
" * normal Default, only show cppcheck error ID and severity)\n"
" * autosar Autosar\n"
" * certC Cert C\n"
" * certCpp Cert Cpp\n"
" * misraC Misra C\n"
" * misraCpp2008 Misra C++ 2008\n"
" * misraCpp2023 Misra C++ 2023\n"
" --rule=<rule> Match regular expression.\n"
" --rule-file=<file> Use given rule file. For more information, see:\n"
" http://sourceforge.net/projects/cppcheck/files/Articles/\n"
Expand Down
13 changes: 13 additions & 0 deletions man/cppcheck.1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
<arg choice="opt">
<option>--report-progress</option>
</arg>
<arg choice="opt">
<option>--report-type=&lt;type&gt;</option>
</arg>
<arg choice="opt">
<option>--rule=&lt;rule&gt;</option>
</arg>
Expand Down Expand Up @@ -552,6 +555,16 @@ There are false positives with this option. Each result must be carefully invest
<para>Report progress when checking a file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--report-type=&lt;type&gt;</option>
</term>
<listitem>
<para>Add guideline and classification fields for specified coding standard. The available report types are:
<glosslist><glossentry><glossterm>normal</glossterm><glossdef><para>Default, only show cppcheck error ID and severity)</para></glossdef></glossentry><glossentry><glossterm>autosar</glossterm><glossdef><para>Autosar</para></glossdef></glossentry><glossentry><glossterm>certC</glossterm><glossdef><para>Cert C</para></glossdef></glossentry><glossentry><glossterm>certCpp</glossterm><glossdef><para>Cert Cpp</para></glossdef></glossentry><glossentry><glossterm>misraC</glossterm><glossdef><para>Misra C</para></glossdef></glossentry><glossentry><glossterm>misraCpp2008</glossterm><glossdef><para>Misra C++ 2008</para></glossdef></glossentry><glossentry><glossterm>misraCpp2023</glossterm><glossdef><para>Misra C++ 2023</para></glossdef></glossentry></glosslist>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--rule=&lt;rule&gt;</option>
Expand Down

0 comments on commit a450db3

Please sign in to comment.