Run xmllint on cppcheck-errors.rng. Speed up creation of example XML output for validateXML target
This commit is contained in:
parent
b14a976c6c
commit
3a71eb834d
3
Makefile
3
Makefile
|
@ -379,10 +379,11 @@ validatePlatforms: ${PlatformFilesCHECKED}
|
|||
/tmp/errorlist.xml: cppcheck
|
||||
./cppcheck --errorlist >$@
|
||||
/tmp/example.xml: cppcheck
|
||||
./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h -j 4 cli externals gui lib test 2>/tmp/example.xml
|
||||
./cppcheck --xml --enable=all --inconclusive --suppress=operatorEqVarError:*check.h --max-configs=1 -j 4 cli externals gui lib test 2>/tmp/example.xml
|
||||
createXMLExamples:/tmp/errorlist.xml /tmp/example.xml
|
||||
.PHONY: validateXML
|
||||
validateXML: createXMLExamples
|
||||
xmllint --noout cppcheck-errors.rng
|
||||
xmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml
|
||||
xmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml
|
||||
|
||||
|
|
|
@ -485,6 +485,7 @@ int main(int argc, char **argv)
|
|||
fout << "createXMLExamples:/tmp/errorlist.xml /tmp/example.xml\n";
|
||||
fout << ".PHONY: validateXML\n";
|
||||
fout << "validateXML: createXMLExamples\n";
|
||||
fout << "\txmllint --noout cppcheck-errors.rng\n";
|
||||
fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/errorlist.xml\n";
|
||||
fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml\n";
|
||||
fout << "\ncheckCWEEntries: /tmp/errorlist.xml\n";
|
||||
|
|
Loading…
Reference in New Issue