Skip to content

Commit bde4a5d

Browse files
committed
[ifndr] Use codeblocktu
1 parent e1a44dc commit bde4a5d

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

source/ifndr.tex

+14-17
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,18 @@
180180

181181
\pnum
182182
\ifndrxref{dcl.align.diff.translation.units} \\
183-
No diagnostic is required if declarations of an entity have different alignment-specifiers in different
183+
No diagnostic is required if declarations of an entity have different \grammarterm{alignment-specifier}s in different
184184
translation units.
185185

186186
\pnum
187187
\begin{example}
188-
\begin{codeblock}
189-
// Translation unit \#1:
188+
\begin{codeblocktu}{Translation unit \#1}
190189
struct S { int x; } s, *p = &s;
191-
192-
// Translation unit \#2:
190+
\end{codeblocktu}
191+
\begin{codeblocktu}{Translation unit \#2}
193192
struct alignas(16) S; // ill-formed, no diagnostic required, definition of \tcode{S} lacks alignment
194193
extern S* p;
195-
\end{codeblock}
194+
\end{codeblocktu}
196195
\end{example}
197196

198197
\rSec2[ifndr.dcl.attr.noreturn]{Noreturn attribute}
@@ -202,14 +201,12 @@
202201

203202
\pnum
204203
\begin{example}
205-
\begin{codeblock}
206-
/* Translation Unit A */
207-
[[noreturn]] void f() {
208-
}
209-
210-
/* Translation Unit B */
211-
struct void f(int i); // ill-formed no diagnostic required, declared without noreturn
212-
\end{codeblock}
204+
\begin{codeblocktu}{Translation unit \#1}
205+
[[noreturn]] void f() {}
206+
\end{codeblocktu}
207+
\begin{codeblocktu}{Translation unit \#2}
208+
void f(int i); // ill-formed no diagnostic required, declared without \tcode{noreturn}
209+
\end{codeblocktu}
213210
\end{example}
214211

215212
\rSec1[ifndr.module]{\ref{module}: Modules}
@@ -218,9 +215,9 @@
218215

219216
\pnum
220217
\ifndrxref{module.unit.reserved.identifiers} \\
221-
All module-names either beginning with an identifier consisting of
222-
std followed by zero or more digits or containing a reserved identifier (5.10) are reserved and shall not be
223-
specified in a module-declaration; no diagnostic is required.
218+
All \grammarterm{module-name}s either beginning with an identifier consisting of
219+
std followed by zero or more digits or containing a reserved identifier\iref{lex.token} are reserved and shall not be
220+
specified in a \grammarterm{module-declaration}; no diagnostic is required.
224221

225222
\pnum
226223
\begin{example}

0 commit comments

Comments
 (0)