Skip to content

[lldb][Modules] Make decls from submodules visible for name lookup #10798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: swift/release/6.2
Choose a base branch
from

Conversation

Michael137
Copy link

This patch ensures we can find decls in submodules during expression evaluation. Previously, submodules would have all their decls marked as Hidden. When Clang asked LLDB for decls, it would see them in the submodule but clang::Sema would reject them because they weren't Visible (specifically, getAcceptableDecl would fail during CppNameLookup). Here we just mark the submodule as visible to work around this problem.

(cherry picked from commit 30f5240)

…lvm#143098)

This patch ensures we can find decls in submodules during expression
evaluation. Previously, submodules would have all their decls marked as
`Hidden`. When Clang asked LLDB for decls, it would see them in the
submodule but `clang::Sema` would reject them because they weren't
`Visible` (specifically, `getAcceptableDecl` would fail during
`CppNameLookup`). Here we just mark the submodule as visible to work
around this problem.

(cherry picked from commit 30f5240)
@Michael137 Michael137 requested a review from adrian-prantl June 6, 2025 16:21
@Michael137 Michael137 requested a review from a team as a code owner June 6, 2025 16:21
@Michael137
Copy link
Author

@swift-ci test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant