Skip to content

Commit 556b44a

Browse files
committed
Fixup (core): comment linebreaks and code formatting
1 parent e90b94b commit 556b44a

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

source/expressions.tex

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3523,8 +3523,8 @@
35233523
\end{bnf}
35243524

35253525
\pnum
3526-
A
3527-
\grammarterm{splice-specifier} or \grammarterm{splice-specialization-specifier}
3526+
A \grammarterm{splice-specifier}
3527+
or \grammarterm{splice-specialization-specifier}
35283528
immediately followed by \tcode{::} or preceded by \keyword{typename}
35293529
is never interpreted as part of a \grammarterm{splice-expression}.
35303530
\begin{example}
@@ -3540,8 +3540,8 @@
35403540
constexpr auto g = typename [:^^int:](42); // OK, \tcode{typename [:\caret\caret int:]} is a \grammarterm{splice-type-specifier}
35413541

35423542
constexpr auto h = ^^g;
3543-
constexpr auto i = e<[:^^h:]>; // error: unparenthesized \grammarterm{splice-expression} used as template argument
3544-
constexpr auto j = e<([:^^h:])>; // OK
3543+
constexpr auto i = e<[:^^h:]>; // error: unparenthesized \grammarterm{splice-expression} used as template argument
3544+
constexpr auto j = e<([:^^h:])>; // OK
35453545
\end{codeblock}
35463546
\end{example}
35473547

@@ -8972,7 +8972,8 @@
89728972

89738973
constexpr Derived obj{.r=^^::}; // OK
89748974
constexpr const Derived& d = obj; // OK
8975-
constexpr const Base& b = fn(obj); // error: not a constant expression because \tcode{Derived} is a consteval-only type but \tcode{Base} is not.
8975+
constexpr const Base& b = fn(obj); // error: not a constant expression because \tcode{Derived}
8976+
// is a consteval-only type but \tcode{Base} is not.
89768977
\end{codeblock}
89778978
\end{example}
89788979
\end{itemize}
@@ -9292,7 +9293,7 @@
92929293
\begin{codeblock}
92939294
struct S0 {
92949295
consteval {
9295-
std::meta::define_aggregate(^^S0, {}); // error: scope associated with S0 encloses the consteval block
9296+
std::meta::define_aggregate(^^S0, {}); // error: scope associated with \tcode{S0} encloses the consteval block
92969297
}
92979298
};
92989299

@@ -9333,11 +9334,14 @@
93339334
struct S6;
93349335
consteval { // \#1
93359336
struct S7; // local class
9336-
std::meta::define_aggregate(^^S7, {});
9337-
// error: consteval block \#1 does not enclose itself, but encloses \tcode{S7}
9337+
9338+
std::meta::define_aggregate(^^S7, {}); // error: consteval block \#1 does not enclose itself,
9339+
// but encloses \tcode{S7}
9340+
93389341
consteval { // \#2
9339-
std::meta::define_aggregate(^^S6, {});
9340-
// error: consteval block \#1 encloses consteval block \#2 but not \tcode{S6}
9342+
std::meta::define_aggregate(^^S6, {}); // error: consteval block \#1 encloses
9343+
// consteval block \#2 but not \tcode{S6}
9344+
93419345
std::meta::define_aggregate(^^S7, {}); // OK, consteval block \#1 encloses both \#2 and \tcode{S7}
93429346
}
93439347
}

0 commit comments

Comments
 (0)