Skip to content

Commit

Permalink
Revert "[lldb][ObjC] Don't query objective-c runtime for decls in C++…
Browse files Browse the repository at this point in the history
… contexts (#95963)"

This reverts commit dadf960.

The commit caused `TestEarlyProcessLaunch.py` to fail on the
macOS bots.
  • Loading branch information
Michael137 committed Jun 20, 2024
1 parent afb3f7e commit 0ec567c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ void ClangASTSource::FindExternalVisibleDecls(
FindDeclInModules(context, name);
}

if (!context.m_found_type && m_ast_context->getLangOpts().ObjC) {
if (!context.m_found_type) {
FindDeclInObjCRuntime(context, name);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,4 @@ def test(self):
(_, process, _, _) = lldbutil.run_to_name_breakpoint(self, "main")

self.assertState(process.GetState(), lldb.eStateStopped)

# Tests that we can use builtin Objective-C identifiers.
self.expect("expr id", error=False)

# Tests that we can lookup Objective-C decls in the ObjC runtime plugin.
self.expect_expr(
"NSString *c; c == nullptr", result_value="true", result_type="bool"
)
21 changes: 0 additions & 21 deletions lldb/test/Shell/Expr/TestObjCInCXXContext.test

This file was deleted.

0 comments on commit 0ec567c

Please sign in to comment.