Travis: Fix xml validation by readding the line attribute in <location>.
This commit is contained in:
parent
2f032d8fa7
commit
ca5542131a
|
@ -401,8 +401,7 @@ std::string ErrorLogger::ErrorMessage::toXML() const
|
||||||
if (!file0.empty() && (*it).getfile() != file0)
|
if (!file0.empty() && (*it).getfile() != file0)
|
||||||
printer.PushAttribute("file0", Path::toNativeSeparators(file0).c_str());
|
printer.PushAttribute("file0", Path::toNativeSeparators(file0).c_str());
|
||||||
printer.PushAttribute("file", (*it).getfile().c_str());
|
printer.PushAttribute("file", (*it).getfile().c_str());
|
||||||
if (it->line != (unsigned int)Suppressions::Suppression::NO_LINE)
|
printer.PushAttribute("line", std::max((*it).line,0));
|
||||||
printer.PushAttribute("line", (*it).line);
|
|
||||||
if (!it->getinfo().empty())
|
if (!it->getinfo().empty())
|
||||||
printer.PushAttribute("info", it->getinfo().c_str());
|
printer.PushAttribute("info", it->getinfo().c_str());
|
||||||
printer.CloseElement(false);
|
printer.CloseElement(false);
|
||||||
|
|
|
@ -222,7 +222,7 @@ public:
|
||||||
std::string stringify() const;
|
std::string stringify() const;
|
||||||
|
|
||||||
unsigned int fileIndex;
|
unsigned int fileIndex;
|
||||||
unsigned int line;
|
int line; // negative value means "no line"
|
||||||
unsigned int col;
|
unsigned int col;
|
||||||
|
|
||||||
std::string getinfo() const {
|
std::string getinfo() const {
|
||||||
|
|
Loading…
Reference in New Issue