-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[PlaygroundTransform] Replace "$builtin" with "__builtin". #14257
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
[PlaygroundTransform] Replace "$builtin" with "__builtin". #14257
Conversation
Please test with these PRs: @swift-ci Please test |
I think it's only the tests that required that rather than the actual behavior at run time, but sure, go for it. |
@jrose-apple Not sure what you mean by "only the tests that required that rather than the actual behavior at run time"? At present, it's not possible to pass This PR lifts that restriction by making the playground transform use |
The dollar-identifier check happens during parsing, so the PlaygroundTransform can use dollar-prefixed identifiers all it wants. The only problem is the way we've been doing the tests, by defining dummy functions in another file. Still, bringing the two transforms in line makes sense, and this one does seem slightly easier to work with. |
Ah, as far as I know everywhere that playgrounds run does it a similar way, because the transform is just performing an name lookup. So there has to be a visible declaration of the |
Ahh, I thought we already used |
Currently, the playground transform requires the use of dollar-identifiers as the functions are prefixed with "$builtin". This commit removes that requirement by replacing "$builtin" with "__builtin". This aligns with the PC macro. This addresses <rdar://problem/36031860>.
d2ac7ce
to
4517785
Compare
Please test with this PR: @swift-ci Please test |
@jrose-apple I've rebased this PR on top of |
Currently, the playground transform requires the use of dollar-identifiers as the functions are prefixed with "$builtin".
This commit removes that requirement by replacing "$builtin" with "__builtin".
This aligns with the PC macro.
This addresses rdar://problem/36031860.