================ @@ -824,6 +824,36 @@ DWARFASTParserClang::GetDIEClassTemplateParams(const DWARFDIE &die) { return {}; } +void DWARFASTParserClang::MappingDeclDIEToDefDIE( + const lldb_private::plugin::dwarf::DWARFDIE &decl_die, + const lldb_private::plugin::dwarf::DWARFDIE &def_die) { + LinkDeclContextToDIE(GetCachedClangDeclContextForDIE(decl_die), def_die); + SymbolFileDWARF *dwarf = def_die.GetDWARF(); + ParsedDWARFTypeAttributes decl_attrs(decl_die); + ParsedDWARFTypeAttributes def_attrs(def_die); + ConstString unique_typename(decl_attrs.name); + Declaration decl_declaration(decl_attrs.decl); + if (Language::LanguageIsCPlusPlus( + SymbolFileDWARF::GetLanguage(*decl_die.GetCU()))) { + std::string qualified_name = GetCPlusPlusQualifiedName(decl_die); + if (!qualified_name.empty()) + unique_typename = ConstString(qualified_name); + decl_declaration.Clear(); + } ---------------- labath wrote:
Sorry, I meant `ParseStructureLikeDIE` (which is called from ParseTypeFromDWARF), roughly lines 1664--1673 https://github.com/llvm/llvm-project/pull/98361 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits