Skip to content

[Macros] Parse MacroExpansionExpr and MacroExpansionDecl #61662

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
Oct 21, 2022

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Oct 21, 2022

Introduce MacroExpansionExpr and MacroExpansionDecl and plumb them through. Parse them in roughly the same way we parse ObjectLiteralExpr.

The syntax is gated under -enable-experimental-feature Macros.

@rxwei rxwei force-pushed the macro-expansion-expr branch from 0ee4141 to 530bd69 Compare October 21, 2022 06:33
@rxwei rxwei marked this pull request as ready for review October 21, 2022 06:36
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This all looks reasonable to me, thank you!

@rxwei
Copy link
Contributor Author

rxwei commented Oct 21, 2022

@swift-ci please test

@rxwei rxwei force-pushed the macro-expansion-expr branch from 530bd69 to a752898 Compare October 21, 2022 07:19
Introduce `MacroExpansionExpr` and `MacroExpansionDecl` and plumb it through. Parse them in roughly the same way we parse `ObjectLiteralExpr`.

The syntax is gated under `-enable-experimental-feature Macros`.
@rxwei rxwei force-pushed the macro-expansion-expr branch from a752898 to 56e7cce Compare October 21, 2022 08:50
@rxwei
Copy link
Contributor Author

rxwei commented Oct 21, 2022

@swift-ci please test and merge

@swift-ci swift-ci merged commit 1ebcd13 into swiftlang:main Oct 21, 2022
@rxwei rxwei deleted the macro-expansion-expr branch October 21, 2022 16:44
kastiglione added a commit to swiftlang/llvm-project that referenced this pull request Nov 10, 2022
kastiglione added a commit to swiftlang/llvm-project that referenced this pull request Dec 3, 2022
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.

3 participants