#8711 Extend XML being generated to validate the XML output format by adding an unmatchedSuppression. Also use proper cppcheck executable to generate them

This commit is contained in:
amai2012 2018-09-24 13:13:05 +02:00
parent bdb136de02
commit cf8523b198
2 changed files with 3 additions and 3 deletions

View File

@ -320,7 +320,7 @@ validatePlatforms: ${PlatformFilesCHECKED}
/tmp/errorlist.xml: cppcheck
cppcheck --errorlist >$@
/tmp/example.xml: cppcheck
cppcheck --xml --inconclusive -j 4 cli externals gui lib test 2>/tmp/example.xml
cppcheck --xml --inconclusive -j 4 --suppress=operatorEqVarError:*check.h --enable=all cli externals gui lib test 2>/tmp/example.xml
createXMLExamples:/tmp/errorlist.xml /tmp/example.xml
.PHONY: validateXML
validateXML: createXMLExamples

View File

@ -416,9 +416,9 @@ int main(int argc, char **argv)
fout << "validatePlatforms: ${PlatformFilesCHECKED}\n\n";
fout << "# Validate XML output (to detect regressions)\n";
fout << "/tmp/errorlist.xml: cppcheck\n";
fout << "\tcppcheck --errorlist >$@\n";
fout << "\t./cppcheck --errorlist >$@\n";
fout << "/tmp/example.xml: cppcheck\n";
fout << "\tcppcheck --xml --inconclusive -j 4 cli externals gui lib test 2>/tmp/example.xml\n";
fout << "\t./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h cli externals gui lib test 2>/tmp/example.xml\n";
fout << "createXMLExamples:/tmp/errorlist.xml /tmp/example.xml\n";
fout << ".PHONY: validateXML\n";
fout << "validateXML: createXMLExamples\n";