Skip to content

[NFC] Split DeclAttrOptions into two types #79966

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
Mar 13, 2025

Conversation

beccadax
Copy link
Contributor

@beccadax beccadax commented Mar 12, 2025

We’re running out of bits in DeclAttrOptions, so split it in two: DeclAttrRequirements contains all the On* options that describe the declarations allowed to have the attribute, while the other options are now DeclAttrBehaviors.

This commit also sorts the entries in DeclAttr.def by serialization code and improves the formatting of the file.

Extracted from #79466, where I need to steal more bits.

We’re running out of bits in DeclAttrOptions, so split it in two: DeclAttrRequirements contains all the `On*` options that describe the declarations allowed to have the attribute, while the other options are now DeclAttrBehaviors.

This commit also sorts the entries in DeclAttr.def by serialization code and improves the formatting of the file.
@beccadax
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

LGTM!

@beccadax beccadax enabled auto-merge March 12, 2025 21:45
@beccadax beccadax mentioned this pull request Mar 13, 2025
@beccadax beccadax merged commit 339f1af into swiftlang:main Mar 13, 2025
3 checks passed
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.

None yet

2 participants