Skip to content

[cherry-pick][stable/20230725] [clang][CodeCompletion] Allow debuggers to code-complete reserved identifiers #8383

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

Conversation

Michael137
Copy link

It is not uncommon for LLDB users to dig into internal implementation details of system types (including the STL). LLDB's expression evaluator makes use of Clang's code-completion facilities but currently reserved identifeirs are filtered out (clang::Decls created in LLDB don't have valid locations, so we would also fail to code-complete any identifiers with reserved prefixes, not just ones from system headers).

This patch permits Clang to code-complete reserved identifiers iff we're in the debugger.

The associated LLDB tests: llvm#84890

rdar://124098023

@Michael137
Copy link
Author

@swift-ci test

@Michael137 Michael137 merged commit 5571918 into swiftlang:stable/20230725 Mar 13, 2024
@Michael137 Michael137 deleted the bugfix/lldb-code-complete-reserved-to-20230725 branch March 13, 2024 06:40
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