From 1e5eab8f1756bb5934d1824e8a3dbe3f20ecaa8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 20 Jul 2014 11:44:01 +0200 Subject: [PATCH] xml dump: Added function attribute in scope --- lib/symboldatabase.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 60323e162..d7796c1e0 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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 << " " << std::endl;