#8178 Remove all references to XML version 1
This commit is contained in:
parent
4ac56a55be
commit
2f2172e1a7
|
@ -1009,8 +1009,7 @@ void CmdLineParser::PrintHelp()
|
||||||
" --version Print out version number.\n"
|
" --version Print out version number.\n"
|
||||||
" --xml Write results in xml format to error stream (stderr).\n"
|
" --xml Write results in xml format to error stream (stderr).\n"
|
||||||
" --xml-version=<version>\n"
|
" --xml-version=<version>\n"
|
||||||
" Select the XML file version. Currently versions 1 and\n"
|
" Select the XML file version. Currently only versions 2 is available."
|
||||||
" 2 are available. The default version is 1."
|
|
||||||
"\n"
|
"\n"
|
||||||
"Example usage:\n"
|
"Example usage:\n"
|
||||||
" # Recursively check the current folder. Print the progress on the screen and\n"
|
" # Recursively check the current folder. Print the progress on the screen and\n"
|
||||||
|
|
|
@ -525,23 +525,15 @@ cppcheck -DA --force file.c</programlisting>
|
||||||
<chapter>
|
<chapter>
|
||||||
<title>XML output</title>
|
<title>XML output</title>
|
||||||
|
|
||||||
<para>Cppcheck can generate output in <literal>XML</literal> format. There
|
<para>Cppcheck can generate output in <literal>XML</literal> format. Use
|
||||||
is an old <literal>XML</literal> format (version 1) and a new
|
|
||||||
<literal>XML</literal> format (version 2). Please use the new version if
|
|
||||||
you can.</para>
|
|
||||||
|
|
||||||
<para>The old version is kept for backwards compatibility only. It will
|
|
||||||
not be changed, but it will likely be removed someday. Use
|
|
||||||
<parameter>--xml</parameter> to enable this format.</para>
|
<parameter>--xml</parameter> to enable this format.</para>
|
||||||
|
|
||||||
<para>The new version fixes a few problems with the old format. The new
|
<para>A sample command to check a file and output
|
||||||
format will probably be updated in future versions of cppcheck with new
|
errors in the <literal>XML</literal> format:</para>
|
||||||
attributes and elements. A sample command to check a file and output
|
|
||||||
errors in the new <literal>XML</literal> format:</para>
|
|
||||||
|
|
||||||
<programlisting>cppcheck --xml-version=2 file1.cpp</programlisting>
|
<programlisting>cppcheck --xml file1.cpp</programlisting>
|
||||||
|
|
||||||
<para>Here is a sample version 2 report:</para>
|
<para>Here is a sample report:</para>
|
||||||
|
|
||||||
<programlisting><?xml version="1.0" encoding="UTF-8"?>
|
<programlisting><?xml version="1.0" encoding="UTF-8"?>
|
||||||
<results version="2">
|
<results version="2">
|
||||||
|
|
Loading…
Reference in New Issue