dump file: fix xml format error in <macro> (#5095)
This commit is contained in:
parent
ec2f00d7c2
commit
9d6449cc44
|
@ -847,10 +847,10 @@ void Preprocessor::dump(std::ostream &out) const
|
||||||
for (const simplecpp::MacroUsage ¯oUsage: mMacroUsage) {
|
for (const simplecpp::MacroUsage ¯oUsage: mMacroUsage) {
|
||||||
out << " <macro"
|
out << " <macro"
|
||||||
<< " name=\"" << macroUsage.macroName << "\""
|
<< " name=\"" << macroUsage.macroName << "\""
|
||||||
<< " file=\"" << macroUsage.macroLocation.file() << "\""
|
<< " file=\"" << ErrorLogger::toxml(macroUsage.macroLocation.file()) << "\""
|
||||||
<< " line=\"" << macroUsage.macroLocation.line << "\""
|
<< " line=\"" << macroUsage.macroLocation.line << "\""
|
||||||
<< " column=\"" << macroUsage.macroLocation.col << "\""
|
<< " column=\"" << macroUsage.macroLocation.col << "\""
|
||||||
<< " usefile=\"" << macroUsage.useLocation.file() << "\""
|
<< " usefile=\"" << ErrorLogger::toxml(macroUsage.useLocation.file()) << "\""
|
||||||
<< " useline=\"" << macroUsage.useLocation.line << "\""
|
<< " useline=\"" << macroUsage.useLocation.line << "\""
|
||||||
<< " usecolumn=\"" << macroUsage.useLocation.col << "\""
|
<< " usecolumn=\"" << macroUsage.useLocation.col << "\""
|
||||||
<< " is-known-value=\"" << (macroUsage.macroValueKnown ? "true" : "false") << "\""
|
<< " is-known-value=\"" << (macroUsage.macroValueKnown ? "true" : "false") << "\""
|
||||||
|
|
Loading…
Reference in New Issue