Skip to content

[Motions 2022 11 cwg 4] Issues 2615, 2639, 2640, 2652, and 2653 from P2710R0 #5988

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

Merged
merged 5 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3387,9 +3387,9 @@
\begin{bnf}
\nontermdef{parameter-declaration}\br
\opt{attribute-specifier-seq} \opt{\keyword{this}} decl-specifier-seq declarator\br
\opt{attribute-specifier-seq} \opt{\keyword{this}} decl-specifier-seq declarator \terminal{=} initializer-clause\br
\opt{attribute-specifier-seq} decl-specifier-seq declarator \terminal{=} initializer-clause\br
\opt{attribute-specifier-seq} \opt{\keyword{this}} decl-specifier-seq \opt{abstract-declarator}\br
\opt{attribute-specifier-seq} \opt{\keyword{this}} decl-specifier-seq \opt{abstract-declarator} \terminal{=} initializer-clause
\opt{attribute-specifier-seq} decl-specifier-seq \opt{abstract-declarator} \terminal{=} initializer-clause
\end{bnf}

The optional \grammarterm{attribute-specifier-seq} in a \grammarterm{parameter-declaration}
Expand Down
15 changes: 9 additions & 6 deletions source/lex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,18 @@
then it shall be a well-formed UTF-8 code unit sequence and
it is decoded to produce a sequence of UCS scalar values
that constitutes the sequence of elements of the translation character set.
In the resulting sequence,
each pair of characters in the input sequence consisting of
\unicode{000d}{carriage return} followed by \unicode{000a}{line feed},
as well as each
\unicode{000d}{carriage return} not immediately followed by a \unicode{000a}{line feed},
is replaced by a single new-line character.

For any other kind of input file supported by the implementation,
characters are mapped, in an
\impldef{mapping physical source file characters to translation character set} manner,
to a sequence of translation character set elements\iref{lex.charset}
(introducing new-line characters for end-of-line indicators).
to a sequence of translation character set elements\iref{lex.charset},
representing end-of-line indicators as new-line characters.

\item
\indextext{line splicing}%
Expand Down Expand Up @@ -308,10 +314,7 @@

\begin{bnf}
\nontermdef{n-char} \textnormal{one of}\br
\terminal{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}\br
\terminal{0 1 2 3 4 5 6 7 8 9}\br
\textnormal{\unicode{002d}{hyphen-minus}}\br
\textnormal{\unicode{0020}{space}}
\textnormal{any member of the translation character set except the \unicode{007d}{right curly bracket} or new-line character}
\end{bnf}

\begin{bnf}
Expand Down
4 changes: 3 additions & 1 deletion source/preprocessor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@
{ll}
\topline
\lhdr{Attribute} & \rhdr{Value} \\ \rowsep
\tcode{assume} & \tcode{202207L} \\
\tcode{carries_dependency} & \tcode{200809L} \\
\tcode{deprecated} & \tcode{201309L} \\
\tcode{fallthrough} & \tcode{201603L} \\
Expand Down Expand Up @@ -1765,7 +1766,8 @@
\mname{STDCPP_BFLOAT16_T}\\
Defined as the integer literal \tcode{1}
if and only if the implementation supports an extended floating-point type
with the properties described in \ref{basic.extended.fp}.
with the properties of the \grammarterm{typedef-name} \tcode{std::bfloat16_t}
as described in \ref{basic.extended.fp}.

\item
\indextext{__time__@\mname{TIME}}%
Expand Down