Skip to content

Allow attributes @_used and @_section on static variables and member functions #69192

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 4 commits into from
Oct 22, 2023

Conversation

kubamracek
Copy link
Contributor

(These attributes are currently gated behind an experimental feature.)

  • Drop the current requirement that these attributes can only apply to top-level declarations
  • Diagnose if they are used in local contexts
  • Diagnose if they are used in generic contexts
  • Add tests

@kubamracek
Copy link
Contributor Author

@swift-ci please test

…functions

- Drop the current requirement that these attributes can only apply to top-level declarations
- Diagnose if they are used in local contexts
- Diagnose if they are used in generic contexts
- Add tests
@kubamracek kubamracek force-pushed the attr-section-on-static-vars branch from 777b0e9 to 25cad6f Compare October 19, 2023 00:48
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek requested a review from xedin October 19, 2023 00:49
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek merged commit 5fed479 into swiftlang:main Oct 22, 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