Skip to content

[CodeComplete] Offer code completion for attached macro attributes #65572

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

Merged
merged 1 commit into from
May 4, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 2, 2023

We need to teach code completion how to invoke the type checker for attached macro attributes. After that, everything started working.

rdar://105232015

We need to teach code completion how to invoke the type checker for attached macro attributes. After that, everything started working.

rdar://105232015
@@ -3258,17 +3258,17 @@ void simple_display(llvm::raw_ostream &out,
class ResolveMacroRequest
: public SimpleRequest<ResolveMacroRequest,
ConcreteDeclRef(UnresolvedMacroReference,
const Decl *),
DeclContext *),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was changed to take a Decl instead of DeclContext to avoid cycles (4f6ab4b), is that no longer an issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just talked to @DougGregor and he agrees that this might not be necessary. Tests also seem to be passing locally for me.

@ahoppen
Copy link
Member Author

ahoppen commented May 2, 2023

@swift-ci Please smoke test

@ahoppen ahoppen merged commit 53e5723 into swiftlang:main May 4, 2023
@ahoppen ahoppen deleted the ahoppen/macro-arg-completion branch May 4, 2023 02:07
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.

3 participants