Skip to content
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

Replace N macro with operator ""_n #25

Merged
merged 2 commits into from
Jan 27, 2022
Merged

Replace N macro with operator ""_n #25

merged 2 commits into from
Jan 27, 2022

Conversation

swatanabe
Copy link
Contributor

@swatanabe swatanabe commented Jan 27, 2022

Cherry picked from c5674d4
with additional fixes.

Because the N macro did not have a project-specific prefix, it clashed
with its namesakes from third-party projects like LLVM. This commit
introduces a namespace-scoped operator ""_n and replaces all invocations
of the N macro with that operator.

Cherry picked from c5674d4
with name.[ch]pp from 2.1 and additional fixes.

Because the N macro did not have a project-specific prefix, it clashed
with its namesakes from third-party projects like LLVM. This commit
introduces a namespace-scoped operator ""_n and replaces all invocations
of the N macro with that operator.
@swatanabe swatanabe requested a review from tbfleming January 27, 2022 16:17
@tbfleming
Copy link
Contributor

2.1's aggressive name checking was an incompatible change to the RPC API, so I left that part out of the back port. Its logic was also a bit clumsy, so I cleaned it up.

@swatanabe swatanabe merged commit 748131b into main Jan 27, 2022
@swatanabe swatanabe deleted the remove_N_macro branch January 27, 2022 18:27
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