Skip to content

[ASTGen] Generate several attributes #77905

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
Dec 6, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Dec 2, 2024

  • SpecializeAttr
  • UnavailableFromAsyncAttr
  • DocumentationAttr
  • StorageRestrictionsAttr
  • NonisolatedAttr

Other fixes:

  • Correct parameter generation for operator functions (no argument labels)
  • Bunch of attribute generation test cases and fixes
  • Introduce AttrArgumentState to simplify attribute arguments handling
  • Apply attributes to VarDecls in PatternBindingDecls
  • Correct zero-argument compound decl name reference e.g. foo()

@rintaro
Copy link
Member Author

rintaro commented Dec 2, 2024

@swift-ci Please smoke test

@rintaro rintaro force-pushed the astgen-declattr-pt2 branch 3 times, most recently from e0ae8f1 to 25fc71d Compare December 5, 2024 19:20
@rintaro
Copy link
Member Author

rintaro commented Dec 5, 2024

@swift-ci Please smoke test

* NonisolatedAttr
* SpecializeAttr
* UnavailableFromAsyncAttr
* DocumentationAttr
* StorageRestrictionsAttr
@rintaro rintaro force-pushed the astgen-declattr-pt2 branch from 25fc71d to 6d7b3d6 Compare December 5, 2024 23:12
@rintaro
Copy link
Member Author

rintaro commented Dec 5, 2024

@swift-ci Please smoke test

1 similar comment
@rintaro
Copy link
Member Author

rintaro commented Dec 6, 2024

@swift-ci Please smoke test

@rintaro rintaro marked this pull request as ready for review December 6, 2024 06:10
Comment on lines +222 to +229
case SourceFileKind::SIL:
return false;
case SourceFileKind::Library:
case SourceFileKind::Main:
case SourceFileKind::Interface:
case SourceFileKind::MacroExpansion:
case SourceFileKind::DefaultArgument:
break;
Copy link
Contributor

Choose a reason for hiding this comment

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

Accidental format change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops. I will fix this when I revisit here.

@rintaro rintaro merged commit 985edf5 into swiftlang:main Dec 6, 2024
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.

2 participants