xml: Add column attribute in <location>

This commit is contained in:
Daniel Marjamäki 2019-08-18 08:37:56 +02:00
parent 6431d1c58a
commit 04e3884ff6
1 changed files with 1 additions and 0 deletions

View File

@ -401,6 +401,7 @@ std::string ErrorLogger::ErrorMessage::toXML() const
printer.PushAttribute("file0", Path::toNativeSeparators(file0).c_str());
printer.PushAttribute("file", (*it).getfile().c_str());
printer.PushAttribute("line", std::max((*it).line,0));
printer.PushAttribute("column", (*it).col);
if (!it->getinfo().empty())
printer.PushAttribute("info", fixInvalidChars(it->getinfo()).c_str());
printer.CloseElement(false);