[lldb][ObjC] Don't query objective-c runtime for decls in C++ contexts (#95963)

This commit is contained in:
Michael Buch
2024-06-19 07:54:51 +01:00
committed by GitHub
parent 7ef2bd4e44
commit dadf960607
3 changed files with 29 additions and 1 deletions

View File

@@ -637,7 +637,7 @@ void ClangASTSource::FindExternalVisibleDecls(
FindDeclInModules(context, name);
}
if (!context.m_found_type) {
if (!context.m_found_type && m_ast_context->getLangOpts().ObjC) {
FindDeclInObjCRuntime(context, name);
}
}