dump: use toxml for function names to handle operator& etc

This commit is contained in:
Daniel Marjamäki 2015-08-18 15:39:15 +02:00
parent 248f468c67
commit 13cf6be40b
1 changed files with 1 additions and 1 deletions

View File

@ -2469,7 +2469,7 @@ void SymbolDatabase::printXml(std::ostream &out) const
if (!scope->functionList.empty()) { if (!scope->functionList.empty()) {
out << " <functionList>" << std::endl; out << " <functionList>" << std::endl;
for (std::list<Function>::const_iterator function = scope->functionList.begin(); function != scope->functionList.end(); ++function) { for (std::list<Function>::const_iterator function = scope->functionList.begin(); function != scope->functionList.end(); ++function) {
out << " <function id=\"" << &*function << "\" tokenDef=\"" << function->tokenDef << "\" name=\"" << function->name() << '\"'; out << " <function id=\"" << &*function << "\" tokenDef=\"" << function->tokenDef << "\" name=\"" << toxml(function->name()) << '\"';
if (function->argCount() == 0U) if (function->argCount() == 0U)
out << "/>" << std::endl; out << "/>" << std::endl;
else { else {