ctu: fixes for xml output

This commit is contained in:
Daniel Marjamäki 2021-08-06 07:57:03 +02:00
parent 1f411498b6
commit b729c4a126
1 changed files with 2 additions and 2 deletions

View File

@ -79,9 +79,9 @@ std::string CTU::FileInfo::CallBase::toBaseXmlString() const
{ {
std::ostringstream out; std::ostringstream out;
out << " " << ATTR_CALL_ID << "=\"" << callId << "\"" out << " " << ATTR_CALL_ID << "=\"" << callId << "\""
<< " " << ATTR_CALL_FUNCNAME << "=\"" << callFunctionName << "\"" << " " << ATTR_CALL_FUNCNAME << "=\"" << ErrorLogger::toxml(callFunctionName) << "\""
<< " " << ATTR_CALL_ARGNR << "=\"" << callArgNr << "\"" << " " << ATTR_CALL_ARGNR << "=\"" << callArgNr << "\""
<< " " << ATTR_LOC_FILENAME << "=\"" << location.fileName << "\"" << " " << ATTR_LOC_FILENAME << "=\"" << ErrorLogger::toxml(location.fileName) << "\""
<< " " << ATTR_LOC_LINENR << "=\"" << location.lineNumber << "\"" << " " << ATTR_LOC_LINENR << "=\"" << location.lineNumber << "\""
<< " " << ATTR_LOC_COLUMN << "=\"" << location.column << "\""; << " " << ATTR_LOC_COLUMN << "=\"" << location.column << "\"";
return out.str(); return out.str();