Cppcheck can generate the output in XML format.
Use the --xml flag when you execute cppcheck:
cppcheck --xml file1.cpp
The xml format is:
<?xml version="1.0"?> <results> <error file="file1.cpp" line="123" id="someError" severity="error" msg="some error text"/> </results>
Attributes:
filename. Both relative and absolute paths are possible
a number
id of error. These are always valid symbolnames.
either error or style
the error message