================ @@ -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:
There's also some filtering we got to do on the context, we only want to consider types in the global namespace 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