-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Escape \U and \u in generated stubs #9154
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
Conversation
Hmm, I registered the |
That's a good question. I'm compiling on MacOS as well. This is the macro that first caused the issue:
Replacing the
For reference, here's the compiler output:
Let me know if I can provide any other information to help figure it out. I'll hold off on fixing the tests in the meantime so we can confirm whether this is a general issue or just something weird happening on my machine. |
This seems to vary by compiler (at least GCC vs Clang vs MSVC), e.g. https://godbolt.org/z/vYh87Ghd4 (or https://godbolt.org/z/46PPb14f5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple nits
df2f415
to
cb42578
Compare
This fixes an issue where a namespaced class beginning with "U" or "u" would yield an invalid arginfo file due to the occurrence of a unicode escape sequence, causing a compile error.
Co-authored-by: Guilliam Xavier <[email protected]>
cb42578
to
4373b22
Compare
Interesting! Using the new conformant preprocessor (
So a bit more conforming to GCC and clang. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This fixes an issue where a namespaced class beginning with "U" or "u" would yield an invalid arginfo file due to the occurrence of a unicode escape sequence, causing a compile error.
Note: waiting for CI test results due to the absence of a local test environment.