Skip to content

[Macros] Allow the back-ticked named(init) to be treated like named(init). #65442

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

Conversation

DougGregor
Copy link
Member

My recent change to parse initializer names in the macro role introduced names now correctly distinguishes between the two forms, but this breaks any existing macros written with the back-ticked form. Treat the former as the latter to provide a grace period for such macros.

Fixes rdar://108571834.

…med(init)`.

My recent change to parse initializer names in the macro role
introduced names now correctly distinguishes between the two forms, but
this breaks any existing macros written with the back-ticked form.
Treat the former as the latter to provide a grace period for such
macros.

Fixes rdar://108571834.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 006537e into swiftlang:main Apr 27, 2023
@DougGregor DougGregor deleted the macro-name-back-ticked-init-as-init branch April 27, 2023 01:36
DougGregor added a commit to DougGregor/swift that referenced this pull request Jun 23, 2023
…utes.

The excessive escaping of `init` in macro role attributes was a
workaround paired with swiftlang#65442 to
smooth things over when working across Swift compiler versions.
However, it's causing problems for init accessors, so stop escaping.

Fixes rdar://111190084.
DougGregor added a commit to DougGregor/swift that referenced this pull request Jun 23, 2023
…utes.

The excessive escaping of `init` in macro role attributes was a
workaround paired with swiftlang#65442 to
smooth things over when working across Swift compiler versions.
However, it's causing problems for init accessors, so stop escaping.

Fixes rdar://111190084.
DougGregor added a commit to DougGregor/swift that referenced this pull request Jun 23, 2023
…utes.

The excessive escaping of `init` in macro role attributes was a
workaround paired with swiftlang#65442 to
smooth things over when working across Swift compiler versions.
However, it's causing problems for init accessors, so stop escaping.

Fixes rdar://111190084.
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