Skip to content

[5.9][CodeCompletion] Suggest synthesized declarations from macros #66888

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

rintaro
Copy link
Member

@rintaro rintaro commented Jun 23, 2023

Cherry-pick #66821 into release/5.9

rdar://110535113

* Don't invalidate the lookup cache in 'getOrCreateSynthesizedFile()'
  Adding a synthesized file itself doesn't introduce any decls. Instead,
  we should invalidate the right after the actual declrations are added
  in the file
* Remove 'SourceLookupCache::invalidate()' method. It was just used
  right before the destruction. It was just not necessary
* Include auxiliary decls in 'SourceLookupCache::lookupVisibleDecls()'
  Previously, global symbol completion didn't include decls synthesized
  by peer macros or freestanding decl macros
* Include "auxiliary decls" in visible member lookup, and visible local
  decl lookup
* Hide macro unique names

rdar://110535113
(cherry picked from commit 096d8ea)
@rintaro rintaro requested a review from a team as a code owner June 23, 2023 17:04
@rintaro
Copy link
Member Author

rintaro commented Jun 23, 2023

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jun 23, 2023

@swift-ci Please test Linux

@rintaro rintaro merged commit 099d9cb into swiftlang:release/5.9 Jun 27, 2023
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.

2 participants