[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Adjust language type for conflicting Objective-C++ forward declarations (PR #130768)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 11 05:58:46 PDT 2025
================
@@ -351,6 +351,41 @@ static void PrepareContextToReceiveMembers(TypeSystemClang &ast,
}
}
+/// Returns \c true if a forward declaration in C or C++ is actually an
+/// Objective-C++ forward declaration. Otherwise, or on error, returns
+/// \c false.
+static bool IsCppForwardDeclObjC(SymbolFileDWARF &dwarf,
+ const ParsedDWARFTypeAttributes &attrs) {
+ assert(attrs.is_forward_declaration);
+
+ if (Language::LanguageIsObjC(attrs.class_language))
+ return false;
+
+ TypeQuery query(attrs.name);
----------------
Michael137 wrote:
I'm hoping we can be smarter about this lookup to not incur a big penalty for doing these type lookups
https://github.com/llvm/llvm-project/pull/130768
More information about the lldb-commits
mailing list