xml dump: Added function attribute in scope

This commit is contained in:
Daniel Marjamäki 2014-07-20 11:44:01 +02:00
parent 328cc7b8f5
commit 1e5eab8f17
1 changed files with 4 additions and 2 deletions

View File

@ -2116,9 +2116,11 @@ void SymbolDatabase::printXml(std::ostream &out) const
out << " classEnd=\"" << scope->classEnd << '\"';
if (scope->nestedIn)
out << " nestedIn=\"" << scope->nestedIn << "\"";
if (scope->functionList.empty() && scope->varlist.empty()) {
if (scope->function)
out << " function=\"" << scope->function << "\"";
if (scope->functionList.empty() && scope->varlist.empty())
out << "/>" << std::endl;
} else {
else {
out << '>' << std::endl;
if (!scope->functionList.empty()) {
out << " <functionList>" << std::endl;