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

[cpp] Explicitly say whether a resulting token sequence is rescanned or not #5639

Open
xmh0511 opened this issue Jul 23, 2022 · 0 comments
Open

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented Jul 23, 2022

For the resulting sequence that arises from the object-like macro, [cpp.replace.general] p10 explicitly says

The replacement list is then rescanned for more macro names as specified below.

However, we didn't explicitly mention rescan for the resulting sequence replacement list that arises from the function-like macro invocation. This is inconsistent.

[cpp.replace.cpp.subst] p4 implies that we should explicitly mention rescanning for the resulting sequence of a function-like macro invocation.

Otherwise, the argument consists of the results of the expansion of the contained pp-tokens as the replacement list of the current function-like macro before removal of placemarker tokens, rescanning, and further replacement.

Similar to [cpp.replace.general] p10, we should use a similar utterance in [cpp.replace.general] p12.

After the argument substitution has taken place([cpp.subs]), the resulting replacement list is then rescanned for more macro names as specified in [cpp.rescan].

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

No branches or pull requests

1 participant