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

[lex.pptoken] p2 Make the effect of the whitespace in preprocessing tokens clearly #6165

Open
xmh0511 opened this issue Mar 8, 2023 · 0 comments

Comments

@xmh0511
Copy link
Contributor

xmh0511 commented Mar 8, 2023

[lex.pptoken] p2 says:

Preprocessing tokens can be separated by whitespace; this consists of comments ([lex.comment]), or whitespace characters (U+0020 space, U+0009 character tabulation, new-line, U+000b line tabulation, and U+000c form feed), or both.
As described in [cpp], in certain circumstances during translation phase 4, whitespace (or the absence thereof) serves as more than preprocessing token separation. Whitespace can appear within a preprocessing token only as part of a header name or between the quotation characters in a character literal or string literal.

"can" in this sentence serves as a weak tone. The intent is, whitespace definitely separates preprocessing tokens except for some special cases. The improvement is:

Except that the whitespace that appears within a preprocessing token only as part of a header name or between the quotation characters in a character literal or string literal, a whitespace separates preprocessing tokens.

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