diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index fa2c05023..e2310b398 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -2934,7 +2934,7 @@ std::string CheckClass::MyFileInfo::toString() const { std::string ret; for (const MyFileInfo::NameLoc &nameLoc: classDefinitions) { - ret += "(callValueType) << "\"" << " " << ATTR_CALL_ARGVALUE << "=\"" << callArgValue << "\""; if (warning) @@ -103,10 +103,10 @@ std::string CTU::FileInfo::FunctionCall::toXmlString() const out << ">\n"; for (const ErrorMessage::FileLocation &loc : callValuePath) out << " \n"; + << " " << ATTR_INFO << "=\"" << ErrorLogger::toxml(loc.getinfo()) << "\"/>\n"; out << ""; } return out.str(); @@ -130,7 +130,7 @@ std::string CTU::FileInfo::UnsafeUsage::toString() const << " " << ATTR_MY_ID << "=\"" << myId << '\"' << " " << ATTR_MY_ARGNR << "=\"" << myArgNr << '\"' << " " << ATTR_MY_ARGNAME << "=\"" << myArgumentName << '\"' - << " " << ATTR_LOC_FILENAME << "=\"" << location.fileName << '\"' + << " " << ATTR_LOC_FILENAME << "=\"" << ErrorLogger::toxml(location.fileName) << '\"' << " " << ATTR_LOC_LINENR << "=\"" << location.lineNumber << '\"' << " " << ATTR_LOC_COLUMN << "=\"" << location.column << '\"' << " " << ATTR_VALUE << "=\"" << value << "\""