|
180 | 180 |
|
181 | 181 | \pnum |
182 | 182 | \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 |
184 | 184 | translation units. |
185 | 185 |
|
186 | 186 | \pnum |
187 | 187 | \begin{example} |
188 | | -\begin{codeblock} |
189 | | -// Translation unit \#1: |
| 188 | +\begin{codeblocktu}{Translation unit \#1} |
190 | 189 | struct S { int x; } s, *p = &s; |
191 | | - |
192 | | -// Translation unit \#2: |
| 190 | +\end{codeblocktu} |
| 191 | +\begin{codeblocktu}{Translation unit \#2} |
193 | 192 | struct alignas(16) S; // ill-formed, no diagnostic required, definition of \tcode{S} lacks alignment |
194 | 193 | extern S* p; |
195 | | -\end{codeblock} |
| 194 | +\end{codeblocktu} |
196 | 195 | \end{example} |
197 | 196 |
|
198 | 197 | \rSec2[ifndr.dcl.attr.noreturn]{Noreturn attribute} |
|
202 | 201 |
|
203 | 202 | \pnum |
204 | 203 | \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} |
213 | 210 | \end{example} |
214 | 211 |
|
215 | 212 | \rSec1[ifndr.module]{\ref{module}: Modules} |
|
218 | 215 |
|
219 | 216 | \pnum |
220 | 217 | \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. |
224 | 221 |
|
225 | 222 | \pnum |
226 | 223 | \begin{example} |
|
0 commit comments