Skip to content

Commit c2c266e

Browse files
notadragonjensmaurer
authored andcommitted
[ub] and [ifndr] remove extra line breaks after ubxref and ifndrxref (#8716)
1 parent a0ceacc commit c2c266e

2 files changed

Lines changed: 97 additions & 100 deletions

File tree

source/ifndr.tex

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
\rSec2[ifndr.lex.name]{Identifiers}
1515

1616
\pnum
17-
\ifndrxref{lex.name.reserved} \\
17+
\ifndrxref{lex.name.reserved}
1818
Some identifiers are reserved for use by \Cpp{} implementations and shall not be used otherwise; no
1919
diagnostic is required.
2020

@@ -37,7 +37,7 @@
3737
\rSec2[ifndr.basic.def.odr]{One-definition rule}
3838

3939
\pnum
40-
\ifndrxref{basic.def.odr.exact.one.def} \\
40+
\ifndrxref{basic.def.odr.exact.one.def}
4141
Every program shall contain exactly one definition of every non-inline function or variable that is odr-used in
4242
that program outside of a discarded statement\iref{stmt.if}; no diagnostic required.
4343

@@ -57,7 +57,7 @@
5757

5858

5959
\pnum
60-
\ifndrxref{basic.def.odr.unnamed.enum.same.type} \\
60+
\ifndrxref{basic.def.odr.unnamed.enum.same.type}
6161
If, at any point in the program, there is more than one reachable unnamed enumeration definition in the same scope that have
6262
the same first enumerator name and do not have typedef names for linkage purposes\iref{dcl.enum}, those unnamed enumeration
6363
types shall be the same; no diagnostic required.
@@ -84,7 +84,7 @@
8484
\rSec2[ifndr.class.member.lookup]{Member name lookup}
8585

8686
\pnum
87-
\ifndrxref{class.member.lookup.name.refers.diff.decl} \\
87+
\ifndrxref{class.member.lookup.name.refers.diff.decl}
8888
A name N used in a class S shall refer to the same declaration in its context and when re-evaluated in the completed scope of S.
8989

9090
\pnum
@@ -131,7 +131,7 @@
131131
\rSec2[ifndr.expr.prim.req]{Requires expressions}
132132

133133
\pnum
134-
\ifndrxref{expr.prim.req.always.sub.fail} \\
134+
\ifndrxref{expr.prim.req.always.sub.fail}
135135
If the substitution of template arguments into a \grammarterm{requirement}
136136
would always result in a substitution failure, the program is ill-formed; no diagnostic required.
137137

@@ -151,7 +151,7 @@
151151
\rSec2[ifndr.stmt.ambig]{Ambiguity resolution}
152152

153153
\pnum
154-
\ifndrxref{stmt.ambig.bound.diff.parse} \\
154+
\ifndrxref{stmt.ambig.bound.diff.parse}
155155
If, during
156156
parsing, a name in a template parameter is bound differently than it would be bound during a trial parse,
157157
the program is ill-formed. No diagnostic is required.
@@ -181,7 +181,7 @@
181181
\rSec2[ifndr.dcl.align]{Alignment specifier}
182182

183183
\pnum
184-
\ifndrxref{dcl.align.diff.translation.units} \\
184+
\ifndrxref{dcl.align.diff.translation.units}
185185
No diagnostic is required if declarations of an entity have different \grammarterm{alignment-specifier}s in different
186186
translation units.
187187

@@ -199,9 +199,7 @@
199199
\rSec2[ifndr.dcl.attr.noreturn]{Noreturn attribute}
200200

201201
\pnum
202-
\ifndrxref{dcl.attr.noreturn.trans.unit.mismatch} \\
203-
204-
\pnum
202+
\ifndrxref{dcl.attr.noreturn.trans.unit.mismatch}
205203
\begin{example}
206204
\begin{codeblocktu}{Translation unit \#1}
207205
[[noreturn]] void f() {}
@@ -216,7 +214,7 @@
216214
\rSec2[ifndr.module.unit]{Module units and purviews}
217215

218216
\pnum
219-
\ifndrxref{module.unit.reserved.identifiers} \\
217+
\ifndrxref{module.unit.reserved.identifiers}
220218
All \grammarterm{module-name}s either beginning with an identifier consisting of
221219
std followed by zero or more digits or containing a reserved identifier\iref{lex.token} are reserved and shall not be
222220
specified in a \grammarterm{module-declaration}; no diagnostic is required.
@@ -234,7 +232,7 @@
234232

235233

236234
\pnum
237-
\ifndrxref{module.unit.named.module.no.partition} \\
235+
\ifndrxref{module.unit.named.module.no.partition}
238236
A named module shall contain exactly one module interface
239237
unit with no module-partition, known as the primary module interface unit of the module; no diagnostic is
240238
required.
@@ -253,7 +251,7 @@
253251
\rSec2[ifndr.class.base.init]{Initializing bases and members}
254252

255253
\pnum
256-
\ifndrxref{class.base.init.delegate.itself} \\
254+
\ifndrxref{class.base.init.delegate.itself}
257255
If a constructor delegates to itself directly or indirectly,
258256
the program is ill-formed, no diagnostic required
259257

@@ -273,7 +271,7 @@
273271
\rSec2[ifndr.class.virtual]{Virtual functions}
274272

275273
\pnum
276-
\ifndrxref{class.virtual.pure.or.defined} \\
274+
\ifndrxref{class.virtual.pure.or.defined}
277275
A virtual function must be declared pure or defined, no diagnostic required. A virtual function declared pure can be defined
278276
out of line
279277

@@ -296,7 +294,7 @@
296294
\rSec2[ifndr.over.literal]{User-defined literals}
297295

298296
\pnum
299-
\ifndrxref{over.literal.reserved} \\
297+
\ifndrxref{over.literal.reserved}
300298
Some literal suffix identifiers are
301299
reserved for future standardization. A declaration whose literal-operator-id uses such a literal
302300
suffix identifier is ill-formed, no diagnostic required.
@@ -314,7 +312,7 @@
314312
\rSec2[ifndr.temp.pre]{Preamble}
315313

316314
\pnum
317-
\ifndrxref{temp.pre.reach.def} \\
315+
\ifndrxref{temp.pre.reach.def}
318316
A definition of a function template, member function of a class template, variable template, or static data
319317
member of a class template shall be reachable from the end of every definition domain\iref{basic.def.odr} in which it is
320318
implicitly instantiated\iref{temp.inst} unless the corresponding specialization is explicitly instantiated\iref{temp.explicit} in
@@ -340,7 +338,7 @@
340338
\rSec2[ifndr.temp.arg.template]{Template template arguments}
341339

342340
\pnum
343-
\ifndrxref{temp.arg.template.sat.constraints} \\
341+
\ifndrxref{temp.arg.template.sat.constraints}
344342
Any partial specializations\iref{temp.spec.partial} associated with the primary template are considered when a specialization
345343
based on the template template-parameter is instantiated. If a specialization is not reachable from the point of
346344
instantiation, and it would have been selected had it been reachable, the program is ill-formed, no diagnostic
@@ -372,7 +370,7 @@
372370
\rSec2[ifndr.constr.atomic]{Atomic constraints}
373371

374372
\pnum
375-
\ifndrxref{temp.constr.atomic.equiv.but.not.equiv} \\
373+
\ifndrxref{temp.constr.atomic.equiv.but.not.equiv}
376374
If the validity or meaning of the program depends on whether two atomic
377375
constraints are equivalent,
378376
and they are functionally equivalent but not equivalent, the program is ill-formed, no diagnostic required.
@@ -392,7 +390,7 @@
392390
\end{example}
393391

394392
\pnum
395-
\ifndrxref{temp.constr.atomic.sat.result.diff} \\
393+
\ifndrxref{temp.constr.atomic.sat.result.diff}
396394
If, at different points in the program, the satisfaction result is different for identical atomic constraints and template arguments, the program is ill-formed, no diagnostic required.
397395

398396
\pnum
@@ -413,7 +411,7 @@
413411
\rSec2[ifndr.temp.constr.normal]{Constraint normalization}
414412

415413
\pnum
416-
\ifndrxref{temp.constr.normal.invalid} \\
414+
\ifndrxref{temp.constr.normal.invalid}
417415
If during constraint normalization any such substitution results in an invalid type or expression,
418416
the program is ill-formed; no diagnostic is required
419417

@@ -431,7 +429,7 @@
431429
\rSec2[ifndr.temp.spec.partial]{Partial specialization}
432430

433431
\pnum
434-
\ifndrxref{temp.spec.partial.general.partial.reachable} \\
432+
\ifndrxref{temp.spec.partial.general.partial.reachable}
435433
A partial specialization shall be reachable from any use of a template specialization that would make use of the
436434
partial specialization as the result of an implicit or explicit instantiation; no diagnostic is required.
437435

@@ -457,7 +455,7 @@
457455
\rSec2[ifndr.temp.names]{Names of template specializations}
458456

459457
\pnum
460-
\ifndrxref{temp.names.sat.constraints} \\
458+
\ifndrxref{temp.names.sat.constraints}
461459
When the template-name of a simple-template-id names a constrained non-function template or a constrained
462460
template template-parameter, and all template-arguments in the simple-template-id are non-dependent\iref{temp.dep.temp},
463461
the associated constraints\iref{temp.constr.decl} of the constrained template shall be satisfied\iref{temp.constr.constr}.
@@ -481,7 +479,7 @@
481479
\rSec3[ifndr.temp.over.link]{Function template overloading}
482480

483481
\pnum
484-
\ifndrxref{temp.over.link.equiv.not.equiv} \\
482+
\ifndrxref{temp.over.link.equiv.not.equiv}
485483
If the validity or meaning of the program depends on whether two constructs are equivalent, and they are
486484
functionally equivalent but not equivalent, the program is ill-formed, no diagnostic required.
487485

@@ -502,7 +500,7 @@
502500
\rSec3[ifndr.temp.res.general]{General}
503501

504502
\pnum
505-
\ifndrxref{temp.res.general.default.but.not.found} \\
503+
\ifndrxref{temp.res.general.default.but.not.found}
506504
If the validity or meaning of the program would be changed by considering a default argument or default
507505
template argument introduced in a declaration that is reachable from the point of instantiation of a
508506
specialization\iref{temp.point} but is not found by lookup for the specialization, the program is ill-formed, no
@@ -519,7 +517,7 @@
519517
\rSec3[ifndr.temp.point]{Point of instantiation}
520518

521519
\pnum
522-
\ifndrxref{temp.point.diff.pt.diff.meaning} \\
520+
\ifndrxref{temp.point.diff.pt.diff.meaning}
523521
A specialization for a class template has at most one point of instantiation within a translation unit. A
524522
specialization for any template may have points of instantiation in multiple translation units. If two different
525523
points of instantiation give a template specialization different meanings according to the one-definition
@@ -553,7 +551,7 @@
553551
\rSec2[ifndr.temp.explicit]{Explicit instantiation}
554552

555553
\pnum
556-
\ifndrxref{temp.explicit.decl.implicit.inst} \\
554+
\ifndrxref{temp.explicit.decl.implicit.inst}
557555
An entity that is the subject of
558556
an explicit instantiation declaration and that is also used in a way that would otherwise cause an implicit
559557
instantiation\iref{temp.inst} in the translation unit shall be the subject of an explicit instantiation definition
@@ -578,7 +576,7 @@
578576
\rSec3[ifndr.temp.deduct.general]{General}
579577

580578
\pnum
581-
\ifndrxref{temp.deduct.general.diff.order} \\
579+
\ifndrxref{temp.deduct.general.diff.order}
582580
If substitution
583581
into different declarations of the same function template would cause template instantiations to occur in a
584582
different order or not at all, the program is ill-formed; no diagnostic required.

0 commit comments

Comments
 (0)