Skip to content

Commit 09a8e7e

Browse files
committed
update cppcheck manual and cli usage
1 parent a0015cc commit 09a8e7e

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

cli/cmdlineparser.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1779,13 +1779,13 @@ void CmdLineParser::printHelp() const
17791779
" --report-progress Report progress messages while checking a file (single job only).\n"
17801780
" --report-type=<type> Add guideline and classification fields for specified coding standard.\n"
17811781
" The available report types are:\n"
1782-
" * normal (default, only show cppcheck error ID and severity)\n"
1783-
" * autosar\n"
1784-
" * certC\n"
1785-
" * certCpp\n"
1786-
" * misraC\n"
1787-
" * misraCpp2008\n"
1788-
" * misraCpp2023\n"
1782+
" * normal Default, only show cppcheck error ID and severity)\n"
1783+
" * autosar Autosar\n"
1784+
" * certC Cert C\n"
1785+
" * certCpp Cert Cpp\n"
1786+
" * misraC Misra C\n"
1787+
" * misraCpp2008 Misra C++ 2008\n"
1788+
" * misraCpp2023 Misra C++ 2023\n"
17891789
" --rule=<rule> Match regular expression.\n"
17901790
" --rule-file=<file> Use given rule file. For more information, see:\n"
17911791
" http://sourceforge.net/projects/cppcheck/files/Articles/\n"

man/cppcheck.1.xml

+13
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
189189
<arg choice="opt">
190190
<option>--report-progress</option>
191191
</arg>
192+
<arg choice="opt">
193+
<option>--report-type=&lt;type&gt;</option>
194+
</arg>
192195
<arg choice="opt">
193196
<option>--rule=&lt;rule&gt;</option>
194197
</arg>
@@ -552,6 +555,16 @@ There are false positives with this option. Each result must be carefully invest
552555
<para>Report progress when checking a file.</para>
553556
</listitem>
554557
</varlistentry>
558+
<varlistentry>
559+
<term>
560+
<option>--report-type=&lt;type&gt;</option>
561+
</term>
562+
<listitem>
563+
<para>Add guideline and classification fields for specified coding standard. The available report types are:
564+
<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>
565+
</para>
566+
</listitem>
567+
</varlistentry>
555568
<varlistentry>
556569
<term>
557570
<option>--rule=&lt;rule&gt;</option>

0 commit comments

Comments
 (0)