================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to