runastyle also formats cppcheck-errors.rng using xmllint

This commit is contained in:
amai 2018-11-05 21:14:49 +01:00
parent 9b67e680ae
commit 1244213d2e
2 changed files with 69 additions and 68 deletions

134
cppcheck-errors.rng Executable file → Normal file
View File

@ -1,70 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" <grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
xmlns="http://relaxng.org/ns/structure/1.0" <start>
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <element name="results">
<start> <attribute name="version">
<element name="results"> <data type="integer"/>
<attribute name="version"> </attribute>
<data type="integer"/> <element name="cppcheck">
</attribute> <attribute name="version">
<element name="cppcheck"> <data type="string"/>
<attribute name="version"> </attribute>
<data type="string"/> </element>
</attribute> <element name="errors">
</element> <zeroOrMore>
<element name="errors"> <element name="error">
<zeroOrMore> <optional>
<element name="error"> <attribute name="cwe">
<optional> <data type="integer"/>
<attribute name="cwe"> </attribute>
<data type="integer"/> </optional>
</attribute> <attribute name="id">
</optional> <data type="NCName"/>
<attribute name="id"> </attribute>
<data type="NCName"/> <optional>
</attribute> <attribute name="inconclusive">
<optional> <data type="boolean"/>
<attribute name="inconclusive"> </attribute>
<data type="boolean"/> </optional>
</attribute> <attribute name="msg">
</optional> <data type="string"/>
<attribute name="msg"> </attribute>
<data type="string"/> <attribute name="severity">
</attribute> <data type="NCName"/>
<attribute name="severity"> </attribute>
<data type="NCName"/> <attribute name="verbose">
</attribute> <data type="string"/>
<attribute name="verbose"> </attribute>
<data type="string"/> <zeroOrMore>
</attribute> <element name="location">
<zeroOrMore> <optional>
<element name="location"> <attribute name="file0">
<optional> <data type="string"/>
<attribute name="file0"> </attribute>
<data type="string"/> </optional>
</attribute> <attribute name="file">
</optional> <data type="string"/>
<attribute name="file"> </attribute>
<data type="string"/> <attribute name="line">
</attribute> <data type="integer"/>
<attribute name="line"> </attribute>
<data type="integer"/> <optional>
</attribute> <attribute name="info">
<optional> <data type="string"/>
<attribute name="info"> </attribute>
<data type="string"/> </optional>
</attribute> </element>
</optional> </zeroOrMore>
</element> <zeroOrMore>
</zeroOrMore> <element name="symbol">
<zeroOrMore> <data type="string"/>
<element name="symbol"> </element>
<data type="string"/> </zeroOrMore>
</element> </element>
</zeroOrMore> </zeroOrMore>
</element> </element>
</zeroOrMore> </element>
</element> </start>
</element>
</start>
</grammar> </grammar>

View File

@ -58,3 +58,6 @@ done
xmllint --format -o man/cppcheck.1.xml_ man/cppcheck.1.xml xmllint --format -o man/cppcheck.1.xml_ man/cppcheck.1.xml
mv -f man/cppcheck.1.xml_ man/cppcheck.1.xml mv -f man/cppcheck.1.xml_ man/cppcheck.1.xml
xmllint --format -o cppcheck-errors_.rng cppcheck-errors.rng
mv cppcheck-errors_.rng cppcheck-errors.rng