Fix #3324 (Change "--template '<text>'" into "--template='<text>'")
http://sourceforge.net/apps/trac/cppcheck/ticket/3324 https://sourceforge.net/apps/trac/cppcheck/wiki/DesignDecisions
This commit is contained in:
parent
ca70693055
commit
17842394c0
|
@ -765,7 +765,7 @@ void CmdLineParser::PrintHelp()
|
|||
" --suppressions-list=<file>\n"
|
||||
" Suppress warnings listed in the file. Each suppression\n"
|
||||
" is in the same format as <spec> above.\n"
|
||||
" --template '<text>' Format the error messages. E.g.\n"
|
||||
" --template='<text>' Format the error messages. E.g.\n"
|
||||
" '{file}:{line},{severity},{id},{message}' or\n"
|
||||
" '{file}({line}):({severity}) {message}'\n"
|
||||
" Pre-defined templates: gcc, vs, edit.\n"
|
||||
|
|
|
@ -126,7 +126,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
|||
<arg choice="opt"><option>--style</option></arg>
|
||||
<arg choice="opt"><option>--suppress=<spec></option></arg>
|
||||
<arg choice="opt"><option>--suppressions-list=<file></option></arg>
|
||||
<arg choice="opt"><option>--template '<text>'</option></arg>
|
||||
<arg choice="opt"><option>--template='<text>'</option></arg>
|
||||
<arg choice="opt"><option>--verbose</option></arg>
|
||||
<arg choice="opt"><option>--version</option></arg>
|
||||
<arg choice="opt"><option>--xml</option></arg>
|
||||
|
@ -397,7 +397,7 @@ Directory name is matched to all parts of the path.</para>
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>--template '<text>'</option></term>
|
||||
<term><option>--template='<text>'</option></term>
|
||||
<listitem>
|
||||
<para>Format the error messages. E.g. '{file}:{line},{severity},{id},{message}' or '{file}({line}):({severity}) {message}'. Pre-defined templates: gcc, vs</para>
|
||||
</listitem>
|
||||
|
|
|
@ -353,9 +353,9 @@ Checking path/file2.cpp...
|
|||
templates.</para>
|
||||
|
||||
<para>To get Visual Studio compatible output you can use
|
||||
<parameter class="command">--template vs</parameter>:</para>
|
||||
<parameter class="command">--template=vs</parameter>:</para>
|
||||
|
||||
<programlisting>cppcheck --template vs gui/test.cpp</programlisting>
|
||||
<programlisting>cppcheck --template=vs gui/test.cpp</programlisting>
|
||||
|
||||
<para>This output will look like this:</para>
|
||||
|
||||
|
@ -364,9 +364,9 @@ gui/test.cpp(31): error: Memory leak: b
|
|||
gui/test.cpp(16): error: Mismatching allocation and deallocation: k</programlisting>
|
||||
|
||||
<para>To get gcc compatible output you can use
|
||||
<parameter class="command">--template gcc</parameter>:</para>
|
||||
<parameter class="command">--template=gcc</parameter>:</para>
|
||||
|
||||
<programlisting>cppcheck --template gcc gui/test.cpp</programlisting>
|
||||
<programlisting>cppcheck --template=gcc gui/test.cpp</programlisting>
|
||||
|
||||
<para>The output will look like this:</para>
|
||||
|
||||
|
@ -377,7 +377,7 @@ gui/test.cpp:16: error: Mismatching allocation and deallocation: k</programlisti
|
|||
<para>You can write your own pattern (for example a comma-separated
|
||||
format):</para>
|
||||
|
||||
<programlisting>cppcheck --template "{file},{line},{severity},{id},{message}" gui/test.cpp</programlisting>
|
||||
<programlisting>cppcheck --template="{file},{line},{severity},{id},{message}" gui/test.cpp</programlisting>
|
||||
|
||||
<para>The output will look like this:</para>
|
||||
|
||||
|
|
Loading…
Reference in New Issue