-
Notifications
You must be signed in to change notification settings - Fork 439
Add @_used and @_section attributes to match #65901 #1710
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
@swift-ci please test |
Hi @kubamracek 👋 You need to run the code generation to get attribute kinds updated with your changes. |
@kimdv Thanks for the info, I actually did run the regenerate step, but the SimpleDeclAttributes seem to simply have no effect (no need?) on the generated swift files? |
...which made me realize that |
d80ce6f
to
b81f557
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Kuba,
Thanks for updating the parser. And it indeed looks like we are no longer using DECL_ATTR_KINDS
. I’m removing it a follow-up PR.
Could you add a test case for @_used
and @_section
, e.g. in AttributeTests.swift?
Also, I just noticed: If you can’t write these attributes in Swift source, there’s no need to add them to swift-syntax. |
And I’m removing the code generation of decl modifiers and type attributes here: #1715 |
Do we need this at all? They can be parsed as custom attributes, and it's fine, right? |
Ah, true. We would need if |
Ha! So I don't even need the parser changes (section attr takes a string argument), and I can just close this PR? |
Yes, looks like it. |
See swiftlang/swift#65901.