Skip to content

Commit 2f2172e

Browse files
committed
cppcheck-opensource#8178 Remove all references to XML version 1
1 parent 4ac56a5 commit 2f2172e

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,7 @@ void CmdLineParser::PrintHelp()
10091009
" --version Print out version number.\n"
10101010
" --xml Write results in xml format to error stream (stderr).\n"
10111011
" --xml-version=<version>\n"
1012-
" Select the XML file version. Currently versions 1 and\n"
1013-
" 2 are available. The default version is 1."
1012+
" Select the XML file version. Currently only versions 2 is available."
10141013
"\n"
10151014
"Example usage:\n"
10161015
" # Recursively check the current folder. Print the progress on the screen and\n"

man/manual.docbook

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -525,23 +525,15 @@ cppcheck -DA --force file.c</programlisting>
525525
<chapter>
526526
<title>XML output</title>
527527

528-
<para>Cppcheck can generate output in <literal>XML</literal> format. There
529-
is an old <literal>XML</literal> format (version 1) and a new
530-
<literal>XML</literal> format (version 2). Please use the new version if
531-
you can.</para>
532-
533-
<para>The old version is kept for backwards compatibility only. It will
534-
not be changed, but it will likely be removed someday. Use
528+
<para>Cppcheck can generate output in <literal>XML</literal> format. Use
535529
<parameter>--xml</parameter> to enable this format.</para>
536530

537-
<para>The new version fixes a few problems with the old format. The new
538-
format will probably be updated in future versions of cppcheck with new
539-
attributes and elements. A sample command to check a file and output
540-
errors in the new <literal>XML</literal> format:</para>
531+
<para>A sample command to check a file and output
532+
errors in the <literal>XML</literal> format:</para>
541533

542-
<programlisting>cppcheck --xml-version=2 file1.cpp</programlisting>
534+
<programlisting>cppcheck --xml file1.cpp</programlisting>
543535

544-
<para>Here is a sample version 2 report:</para>
536+
<para>Here is a sample report:</para>
545537

546538
<programlisting>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
547539
&lt;results version="2"&gt;

0 commit comments

Comments
 (0)