From ebe8dc2cf399d2426eded63efea365361e53368a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 20 Jul 2022 07:23:19 +0200 Subject: [PATCH] SymbolDatabase: Extended dumpfiles. Scope: derivedFrom types. Function: overridden function. --- lib/symboldatabase.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index fcf91903b..6e1e90d24 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -3892,6 +3892,8 @@ void SymbolDatabase::printXml(std::ostream &out) const out << " nestedIn=\"" << scope->nestedIn << "\""; if (scope->function) out << " function=\"" << scope->function << "\""; + if (scope->definedType) + out << " definedType=\"" << scope->definedType << "\""; if (scope->functionList.empty() && scope->varlist.empty()) out << "/>" << std::endl; else { @@ -3921,6 +3923,8 @@ void SymbolDatabase::printXml(std::ostream &out) const out << " isInlineKeyword=\"true\""; if (function->isStatic()) out << " isStatic=\"true\""; + if (const Function* overriddenFunction = function->getOverriddenFunction()) + out << " overriddenFunction=\"" << overriddenFunction << "\""; if (function->argCount() == 0U) out << "/>" << std::endl; else { @@ -3946,6 +3950,27 @@ void SymbolDatabase::printXml(std::ostream &out) const } out << " " << std::endl; + if (!typeList.empty()) { + out << " \n"; + for (const Type& type:typeList) { + out << " \n"; + continue; + } + out << ">\n"; + for (const Type::BaseInfo& baseInfo: type.derivedFrom) { + out << " \n"; + } + out << " \n"; + } + out << " \n"; + } + // Variables.. for (const Variable *var : mVariableList) variables.insert(var);