Skip to content

Commit f6b7ef3

Browse files
AlisdairMtkoeppe
authored andcommitted
[lex.phases] Add crossreferences from phases 3 and 4
The phases of translation use forward references to the rest of the standard well, but phases 3 and 4 almost entirely lack such crossreferences, despite doing significant work in the process of translating a file.
1 parent 241ac01 commit f6b7ef3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/lex.tex

+6-6
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
would arise from a source file ending with an unclosed \tcode{/*}
141141
comment.
142142
\end{footnote}
143-
Each comment is replaced by one space character. New-line characters are
143+
Each comment\iref{lex.comment} is replaced by one space character. New-line characters are
144144
retained. Whether each nonempty sequence of whitespace characters other
145145
than new-line is retained or replaced by one space character is
146146
unspecified.
@@ -153,18 +153,18 @@
153153
\grammarterm{r-char-sequence},
154154
\grammarterm{h-char-sequence}, or
155155
\grammarterm{q-char-sequence},
156-
\grammarterm{universal-character-name}s are recognized and
157-
replaced by the designated element of the translation character set.
156+
\grammarterm{universal-character-name}s are recognized\iref{lex.universal.char} and
157+
replaced by the designated element of the translation character set\iref{lex.charset}.
158158
The process of dividing a source file's
159159
characters into preprocessing tokens is context-dependent.
160160
\begin{example}
161161
See the handling of \tcode{<} within a \tcode{\#include} preprocessing
162162
directive\iref{cpp.include}.
163163
\end{example}
164164

165-
\item Preprocessing directives are executed, macro invocations are
166-
expanded, and \tcode{_Pragma} unary operator expressions are executed.
167-
A \tcode{\#include} preprocessing directive causes the named header or
165+
\item Preprocessing directives\iref{cpp} are executed, macro invocations are
166+
expanded\iref{cpp.replace}, and \tcode{_Pragma} unary operator expressions are executed\iref{cpp.pragma.op}.
167+
A \tcode{\#include} preprocessing directive\iref{cpp.include} causes the named header or
168168
source file to be processed from phase 1 through phase 4, recursively.
169169
All preprocessing directives are then deleted.
170170

0 commit comments

Comments
 (0)