Skip to content

[Macros] Walk semantic attributes when checking a primary file #63371

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 3 commits into from
Feb 2, 2023

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Feb 2, 2023

This ensures that all attributes, including those generated by macro expansions, are semantically checked within a source file. And by removing the incorrect check of the attributes when they are attached to the "missing" declaration, we eliminate some spurious diagnostics to make attribute-generating macros more powerful.

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test Linux

@DougGregor
Copy link
Member Author

@swift-ci please build toolchain macOS

@DougGregor DougGregor merged commit 3c47c4f into swiftlang:main Feb 2, 2023
@DougGregor DougGregor deleted the semantic-attr-primary-walk branch February 2, 2023 14:23
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