Skip to content

Commit a383010

Browse files
committed
Add --std to the man file
1 parent d5c2c7d commit a383010

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

man/cppcheck.1.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
125125
<arg choice="opt"><option>--rule=&lt;rule&gt;</option></arg>
126126
<arg choice="opt"><option>--rule-file=&lt;file&gt;</option></arg>
127127
<arg choice="opt"><option>--style</option></arg>
128+
<arg choice="opt"><option>--std=&lt;id&gt;</option></arg>
128129
<arg choice="opt"><option>--suppress=&lt;spec&gt;</option></arg>
129130
<arg choice="opt"><option>--suppressions-list=&lt;file&gt;</option></arg>
130131
<arg choice="opt"><option>--template='&lt;text&gt;'</option></arg>
@@ -388,6 +389,34 @@ Directory name is matched to all parts of the path.</para>
388389
<para>Deprecated, use --enable=style</para>
389390
</listitem>
390391
</varlistentry>
392+
<varlistentry>
393+
<term><option>--std=&lt;id&gt;</option></term>
394+
<listitem>
395+
<para>Enable some environment related checks. The available options are:
396+
<glosslist>
397+
<glossentry>
398+
<glossterm>posix</glossterm>
399+
<glossdef>
400+
<para>Use this if you want to see posix related errors</para>
401+
</glossdef>
402+
</glossentry>
403+
<glossentry>
404+
<glossterm>c99</glossterm>
405+
<glossdef>
406+
<para>Use this if the compiler is C99 compatible</para>
407+
</glossdef>
408+
</glossentry>
409+
<glossentry>
410+
<glossterm>c++11</glossterm>
411+
<glossdef>
412+
<para>Use this if the compiler is C++11 compatible. Note: you probably want to also use 'c99'.</para>
413+
</glossdef>
414+
</glossentry>
415+
</glosslist>
416+
By default all are disabled. To enable more than one, just use --std more than once: 'cppcheck --std=c99 --std=c++11 file.cpp'
417+
</para>
418+
</listitem>
419+
</varlistentry>
391420
<varlistentry>
392421
<term><option>--suppress=&lt;spec&gt;</option></term>
393422
<listitem>

0 commit comments

Comments
 (0)