Preprocessing tokens can be separated by
whitespace;
this consists of comments ([lex.comment]), or whitespace characters
(U+0020space,
U+0009character tabulation,
new-line,
U+000bline tabulation, and
U+000cform feed), or both.
As described in Clause [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.
Each preprocessing token that is converted to a token ([lex.token])
shall have the lexical form of a keyword, an identifier, a literal,
a header name,
or an operator or punctuator.
If the next character begins a sequence of characters that could be the prefix
and initial double quote of a raw string literal, such as R", the next preprocessing
token shall be a raw string literal.
Between the initial and final
double quote characters of the raw string, any transformations performed in phase
2 (line splicing) are reverted; this reversion
is applied before any d-char, r-char, or delimiting
parenthesis is identified.
The raw string literal is defined as the shortest sequence
of characters that matches the raw-string pattern
Otherwise, if the next three characters are <:: and the subsequent character
is neither : nor >, the < is treated as a preprocessing token by
itself and not as the first character of the alternative token <:.
Otherwise, if the next three characters are [:: and
the subsequent character is not :, or
if the next three characters are [:>,
the [ is treated as a preprocessing token by itself and
not as the first character of the preprocessing token [:.
Otherwise,
the next preprocessing token is the longest sequence of
characters that could constitute a preprocessing token, even if that
would cause further lexical analysis to fail,
except that
immediately after a preprocessing token sequence of __has_include
or __has_embed immediately followed by (
in a #if, #elif, or #embed directive ([cpp.cond], [cpp.embed]).
A preprocessing token is considered to be
immediately after
another preprocessing token if
the preprocessing tokens are on the same logical source line and
there are no intervening preprocessing tokens.
The program fragment 0xe+foo is parsed as a
preprocessing number token (one that is not a valid
integer-literal or floating-point-literal token),
even though a parse as three preprocessing tokens
0xe, +, and foo can produce a valid expression
(e.g., if foo is a macro defined as 1).
Similarly, the
program fragment 1E1 is parsed as a preprocessing number (one
that is a valid floating-point-literal token),
whether or not E is a macro name.
The program fragment x+++++y is parsed as x
+++++ y, which, if x and y have integral types,
violates a constraint on increment operators, even though the parse
x +++++ y can yield a correct expression.