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.pre] p1 directive-introducing token is immediately followed by a whitespace #5393
Comments
How about this?
|
@frederick-vs-ja The suggestion sounds good. I think the third bullet might be changed to
This is enough sufficient since we have restricted the preceding two preprocessing tokens with the corresponding requirements to which they shall satisfy. So, it can be naturally construed that the tokens that immediately follow either the |
Also, I think the following sentence should be placed precede to above bullets
It makes sense that we should first determine which preprocessing tokens a preprocessing directive consists of. Based on it, we can say what the immediately following preprocessing token should be. I think the complete change might be:
|
[cpp.pre] p1 says
Consider such three cases:
Neither of them is immediately followed by the expected preprocessing tokens on the same logic line. In other words, these directive-introducing tokens are immediately followed by whitespaces. I think whitespace should be considered here since [lex.phases] p3 says
Only at phase 7 will these whitespace characters be no longer significant. P7 says
In other words, it makes sense that we consider whitespace characters for any phase prior to phase 7. Thus, the intervening whitespace makes the tokens not immediately follow the directive-introducing token. I think [cpp.pre] p1 might be changed to
The text was updated successfully, but these errors were encountered: