Skip to content

Commit 1e5eab8

Browse files
committed
xml dump: Added function attribute in scope
1 parent 328cc7b commit 1e5eab8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,9 +2116,11 @@ void SymbolDatabase::printXml(std::ostream &out) const
21162116
out << " classEnd=\"" << scope->classEnd << '\"';
21172117
if (scope->nestedIn)
21182118
out << " nestedIn=\"" << scope->nestedIn << "\"";
2119-
if (scope->functionList.empty() && scope->varlist.empty()) {
2119+
if (scope->function)
2120+
out << " function=\"" << scope->function << "\"";
2121+
if (scope->functionList.empty() && scope->varlist.empty())
21202122
out << "/>" << std::endl;
2121-
} else {
2123+
else {
21222124
out << '>' << std::endl;
21232125
if (!scope->functionList.empty()) {
21242126
out << " <functionList>" << std::endl;

0 commit comments

Comments
 (0)