Skip to content

[Macros] Recognize the $e Embedded Swift prefix in MacroDecl::isUniqueMacroName #79403

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
Feb 24, 2025

Conversation

kubamracek
Copy link
Contributor

See the attached test case. With the new Embedded Swift's mangling that uses $e as the prefix, we were failing to recognize macro-generated unique names, and rejecting them with "... is not covered by macro" if we were expanding macros while compiling in Embedded Swift mode. This fixes that.

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek
Copy link
Contributor Author

@swift-ci please test Windows platform

2 similar comments
@kubamracek
Copy link
Contributor Author

@swift-ci please test Windows platform

@kubamracek
Copy link
Contributor Author

@swift-ci please test Windows platform

@kubamracek kubamracek merged commit 874c625 into swiftlang:main Feb 24, 2025
5 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