xml: Add attribute 'inconclusive' to the xml (format version 2)

This commit is contained in:
Daniel Marjamäki 2012-03-25 11:59:30 +02:00
parent 1d95416840
commit 4773384ff4
1 changed files with 2 additions and 4 deletions

View File

@ -233,15 +233,13 @@ std::string ErrorLogger::ErrorMessage::toXML(bool verbose, int version) const
// The xml format you get when you use --xml-version=2
else if (version == 2) {
// TODO: How should inconclusive messages be saved in the xml version 2?
if (_inconclusive)
return "";
xml << " <error";
xml << " id=\"" << _id << "\"";
xml << " severity=\"" << Severity::toString(_severity) << "\"";
xml << " msg=\"" << stringToXml(_shortMessage) << "\"";
xml << " verbose=\"" << stringToXml(_verboseMessage) << "\"";
if (_inconclusive)
xml << " inconclusive=\"true\"";
xml << ">" << std::endl;
for (std::list<FileLocation>::const_reverse_iterator it = _callStack.rbegin(); it != _callStack.rend(); ++it) {