Skip to content

Commit d0a8ea2

Browse files
committed
[everywhere] Fix (\ref{..}) at start of line to be \iref on prior line.
1 parent beb8815 commit d0a8ea2

17 files changed

+101
-112
lines changed

source/basic.tex

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
\tcode{extern} specifier\iref{dcl.stc} or a
116116
\grammarterm{linkage-specification}\footnote{Appearing inside the braced-enclosed
117117
\grammarterm{declaration-seq} in a \grammarterm{linkage-specification} does
118-
not affect whether a declaration is a definition.}
119-
(\ref{dcl.link}) and neither an \grammarterm{initializer} nor a
118+
not affect whether a declaration is a definition.}\iref{dcl.link}
119+
and neither an \grammarterm{initializer} nor a
120120
\grammarterm{function-body},
121121
\item
122122
\indextext{declaration!static member@\tcode{static} member}%
@@ -401,8 +401,8 @@
401401
\ref{expr.dynamic.cast}, \ref{expr.static.cast}, \ref{expr.cast}), or
402402
\item an expression that is not a null pointer constant, and has type
403403
other than \cv{}~\tcode{void*}, is converted to the type pointer to \tcode{T}
404-
or reference to \tcode{T} using a standard conversion
405-
(\ref{conv}), a \tcode{dynamic_cast}\iref{expr.dynamic.cast} or
404+
or reference to \tcode{T} using a standard conversion\iref{conv},
405+
a \tcode{dynamic_cast}\iref{expr.dynamic.cast} or
406406
a \tcode{static_cast}\iref{expr.static.cast}, or
407407
\item a class member access operator is applied to an expression of type
408408
\tcode{T}\iref{expr.ref}, or
@@ -422,11 +422,11 @@
422422
\end{note}
423423

424424
\pnum
425-
There can be more than one definition of a class type
426-
(\ref{class}), enumeration type\iref{dcl.enum}, inline function
425+
There can be more than one definition of a class type\iref{class},
426+
enumeration type\iref{dcl.enum}, inline function
427427
with external linkage\iref{dcl.inline}, inline variable with external
428-
linkage\iref{dcl.inline}, class template
429-
(\ref{temp}), non-static function template\iref{temp.fct},
428+
linkage\iref{dcl.inline}, class template\iref{temp},
429+
non-static function template\iref{temp.fct},
430430
concept\iref{temp.concept},
431431
static data member of a class template\iref{temp.static}, member
432432
function of a class template\iref{temp.mem.func}, or template
@@ -640,8 +640,8 @@
640640
\pnum
641641
The point of declaration for a class or class template first declared by a
642642
\grammarterm{class-specifier} is immediately after the \grammarterm{identifier} or
643-
\grammarterm{simple-template-id} (if any) in its \grammarterm{class-head}
644-
(\ref{class}). The point of declaration for an enumeration is
643+
\grammarterm{simple-template-id} (if any) in its \grammarterm{class-head}\iref{class}.
644+
The point of declaration for an enumeration is
645645
immediately after the \grammarterm{identifier} (if any) in either its
646646
\grammarterm{enum-specifier}\iref{dcl.enum} or its first
647647
\grammarterm{opaque-enum-declaration}\iref{dcl.enum}, whichever comes first.
@@ -945,8 +945,8 @@
945945
\pnum
946946
The name of a class member shall only be used as follows:
947947
\begin{itemize}
948-
\item in the scope of its class (as described above) or a class derived
949-
(\ref{class.derived}) from its class,
948+
\item in the scope of its class (as described above) or a class derived\iref{class.derived}
949+
from its class,
950950
\item after the \tcode{.} operator applied to an expression of the type
951951
of its class\iref{expr.ref} or a class derived from its class,
952952
\item after the \tcode{->} operator applied to a pointer to an object of
@@ -1101,8 +1101,8 @@
11011101
in the latter case,
11021102
the declarations are said to form a set of overloaded
11031103
functions\iref{over.load}. Overload resolution\iref{over.match}
1104-
takes place after name lookup has succeeded. The access rules
1105-
(\ref{class.access}) are considered only once name lookup and
1104+
takes place after name lookup has succeeded. The access rules\iref{class.access}
1105+
are considered only once name lookup and
11061106
function overload resolution (if applicable) have succeeded. Only after
11071107
name lookup, function overload resolution (if applicable) and access
11081108
checking have succeeded are the attributes introduced by the name's
@@ -1428,8 +1428,8 @@
14281428
\end{example}
14291429

14301430
\pnum
1431-
A name used in the handler for a \grammarterm{function-try-block}
1432-
(\ref{except}) is looked up as if the name was used in the
1431+
A name used in the handler for a \grammarterm{function-try-block}\iref{except}
1432+
is looked up as if the name was used in the
14331433
outermost block of the function definition. In particular, the function
14341434
parameter names shall not be redeclared in the
14351435
\grammarterm{exception-declaration} nor in the outermost block of a handler
@@ -2199,8 +2199,8 @@
21992199

22002200
\pnum
22012201
\indextext{program}%
2202-
A \defn{program} consists of one or more \defnx{translation units}{translation unit}
2203-
(\ref{lex}) linked together. A translation unit consists
2202+
A \defn{program} consists of one or more \defnx{translation units}{translation unit}\iref{lex}
2203+
linked together. A translation unit consists
22042204
of a sequence of declarations.
22052205

22062206
\begin{bnf}
@@ -3971,8 +3971,8 @@
39713971
\end{itemize}
39723972

39733973
\item
3974-
\defnx{classes}{class} containing a sequence of objects of various types
3975-
(\ref{class}), a set of types, enumerations and functions for
3974+
\defnx{classes}{class} containing a sequence of objects of various types\iref{class},
3975+
a set of types, enumerations and functions for
39763976
manipulating these objects\iref{class.mfct}, and a set of restrictions
39773977
on the access to these entities\iref{class.access};
39783978

source/classes.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080

8181
\pnum
8282
If a class is marked with the \grammarterm{class-virt-specifier} \tcode{final} and it appears
83-
as a \grammarterm{class-or-decltype} in a \grammarterm{base-clause}
84-
(\ref{class.derived}), the program is ill-formed. Whenever a
83+
as a \grammarterm{class-or-decltype} in a \grammarterm{base-clause}\iref{class.derived},
84+
the program is ill-formed. Whenever a
8585
\grammarterm{class-key} is followed by a \grammarterm{class-head-name}, the
8686
\grammarterm{identifier} \tcode{final}, and a colon or left brace, \tcode{final} is
8787
interpreted as a \grammarterm{class-virt-specifier}. \begin{example}
@@ -928,8 +928,8 @@
928928

929929
\pnum
930930
A non-static member function may be called for an object of
931-
its class type, or for an object of a class derived
932-
(\ref{class.derived}) from its class type, using the class member
931+
its class type, or for an object of a class derived\iref{class.derived}
932+
from its class type, using the class member
933933
access syntax~(\ref{expr.ref}, \ref{over.match.call}). A non-static
934934
member function may also be called directly using the function call
935935
syntax~(\ref{expr.call}, \ref{over.match.call}) from within
@@ -1181,8 +1181,8 @@
11811181

11821182

11831183
\pnum
1184-
Static members obey the usual class member access rules
1185-
(\ref{class.access}). When used in the declaration of a class
1184+
Static members obey the usual class member access rules\iref{class.access}.
1185+
When used in the declaration of a class
11861186
member, the \tcode{static} specifier shall only be used in the member
11871187
declarations that appear within the \grammarterm{member-specification} of
11881188
the class definition.

source/conversions.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@
518518
\pnum
519519
A prvalue of type ``pointer to \cvqual{cv} \tcode{D}'', where \tcode{D}
520520
is a class type, can be converted to a prvalue of type ``pointer to
521-
\cvqual{cv} \tcode{B}'', where \tcode{B} is a base class
522-
(\ref{class.derived}) of \tcode{D}. If \tcode{B} is an
521+
\cvqual{cv} \tcode{B}'', where \tcode{B} is a base class\iref{class.derived}
522+
of \tcode{D}. If \tcode{B} is an
523523
inaccessible\iref{class.access} or
524524
ambiguous\iref{class.member.lookup} base class of \tcode{D}, a program
525525
that necessitates this conversion is ill-formed. The result of the
@@ -548,8 +548,8 @@
548548
A prvalue of type ``pointer to member of \tcode{B} of type \cvqual{cv}
549549
\tcode{T}'', where \tcode{B} is a class type, can be converted to
550550
a prvalue of type ``pointer to member of \tcode{D} of type \cvqual{cv}
551-
\tcode{T}'', where \tcode{D} is a derived class
552-
(\ref{class.derived}) of \tcode{B}. If \tcode{B} is an
551+
\tcode{T}'', where \tcode{D} is a derived class\iref{class.derived}
552+
of \tcode{B}. If \tcode{B} is an
553553
inaccessible\iref{class.access},
554554
ambiguous\iref{class.member.lookup}, or virtual\iref{class.mi} base
555555
class of \tcode{D}, or a base class of a virtual base class of

source/declarations.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,10 +1524,10 @@
15241524
\grammarterm{elaborated-type-specifier}, the \tcode{enum} keyword
15251525
shall be
15261526
used to refer to an enumeration\iref{dcl.enum}, the \tcode{union}
1527-
\grammarterm{class-key} shall be used to refer to a union
1528-
(\ref{class}), and either the \tcode{class} or \tcode{struct}
1529-
\grammarterm{class-key} shall be used to refer to a class
1530-
(\ref{class}) declared using the \tcode{class} or \tcode{struct}
1527+
\grammarterm{class-key} shall be used to refer to a union\iref{class},
1528+
and either the \tcode{class} or \tcode{struct}
1529+
\grammarterm{class-key} shall be used to refer to a class\iref{class}
1530+
declared using the \tcode{class} or \tcode{struct}
15311531
\grammarterm{class-key}. \begin{example}
15321532

15331533
\begin{codeblock}

source/declarators.tex

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@
282282

283283
\pnum
284284
A type can also be named (often more easily) by using a
285-
\tcode{typedef}
286-
(\ref{dcl.typedef}).
285+
\tcode{typedef}\iref{dcl.typedef}.
287286

288287
\rSec1[dcl.ambig.res]{Ambiguity resolution}%
289288
\indextext{ambiguity!declaration versus cast}%
@@ -495,8 +494,7 @@
495494
\tcode{int}
496495
\tcode{unsigned}
497496
determine the type
498-
``\tcode{unsigned int}''
499-
(\ref{dcl.type.simple}).
497+
``\tcode{unsigned int}''\iref{dcl.type.simple}.
500498
\end{example}
501499

502500
\pnum
@@ -789,8 +787,7 @@
789787
no arrays of references, and no pointers to references.
790788
\indextext{initialization!reference}%
791789
The declaration of a reference shall contain an
792-
\grammarterm{initializer}
793-
(\ref{dcl.init.ref})
790+
\grammarterm{initializer}\iref{dcl.init.ref}
794791
except when the declaration contains an explicit
795792
\tcode{extern}
796793
specifier\iref{dcl.stc},
@@ -982,8 +979,8 @@
982979
a function type or an abstract class type.
983980
\indextext{declaration!array}%
984981
If the
985-
\grammarterm{constant-expression}
986-
(\ref{expr.const}) is present, it shall be a converted constant
982+
\grammarterm{constant-expression}\iref{expr.const}
983+
is present, it shall be a converted constant
987984
expression of type \tcode{std::size_t} and
988985
its value shall be greater than zero.
989986
The constant expression specifies the
@@ -1078,8 +1075,8 @@
10781075
\indextext{array size!default}%
10791076
of initial elements (say,
10801077
\tcode{N})
1081-
supplied
1082-
(\ref{dcl.init.aggr}), and the type of the identifier of
1078+
supplied\iref{dcl.init.aggr},
1079+
and the type of the identifier of
10831080
\tcode{D}
10841081
is ``array of
10851082
\tcode{N}
@@ -1522,8 +1519,7 @@
15221519

15231520
declares a function taking three arguments of the specified types,
15241521
and returning
1525-
\tcode{int}
1526-
(\ref{dcl.type}).
1522+
\tcode{int}\iref{dcl.type}.
15271523
\end{example}
15281524

15291525
\pnum
@@ -1742,8 +1738,7 @@
17421738
of a function declaration
17431739
or \grammarterm{lambda-declarator}
17441740
or in a
1745-
\grammarterm{template-parameter}
1746-
(\ref{temp.param});
1741+
\grammarterm{template-parameter}\iref{temp.param};
17471742
in the latter case, the \grammarterm{initializer-clause} shall be an
17481743
\grammarterm{assignment-expression}.
17491744
A default argument shall not be specified for a parameter pack.
@@ -1967,8 +1962,8 @@
19671962
\end{codeblock}
19681963
\end{example}
19691964
When a declaration of a function is introduced by way of a
1970-
\grammarterm{using-declaration}
1971-
(\ref{namespace.udecl}), any default argument information associated
1965+
\grammarterm{using-declaration}\iref{namespace.udecl},
1966+
any default argument information associated
19721967
with the declaration is made known as well.
19731968
If the function is redeclared
19741969
thereafter in the namespace with additional default arguments,
@@ -2888,8 +2883,8 @@
28882883
Otherwise, if the source type
28892884
is a (possibly cv-qualified) class type, conversion functions are
28902885
considered.
2891-
The applicable conversion functions are enumerated
2892-
(\ref{over.match.conv}), and the best one is chosen through overload
2886+
The applicable conversion functions are enumerated\iref{over.match.conv},
2887+
and the best one is chosen through overload
28932888
resolution\iref{over.match}.
28942889
The user-defined conversion so selected
28952890
is called to convert the initializer expression into the
@@ -3206,8 +3201,8 @@
32063201
\begin{note}
32073202
A default member initializer does not determine the bound for a member
32083203
array of unknown bound. Since the default member initializer is
3209-
ignored if a suitable \grammarterm{mem-initializer} is present
3210-
(\ref{class.base.init}), the default member initializer is not
3204+
ignored if a suitable \grammarterm{mem-initializer} is present\iref{class.base.init},
3205+
the default member initializer is not
32113206
considered to initialize the array of unknown bound.
32123207
\begin{example}
32133208
\begin{codeblock}
@@ -3601,8 +3596,8 @@
36013596
and function value return\iref{stmt.return} are initializations.
36023597

36033598
\pnum
3604-
The initializer can be omitted for a reference only in a parameter declaration
3605-
(\ref{dcl.fct}), in the declaration of a function return type, in the declaration of
3599+
The initializer can be omitted for a reference only in a parameter declaration\iref{dcl.fct},
3600+
in the declaration of a function return type, in the declaration of
36063601
a class member within its class definition\iref{class.mem}, and where the
36073602
\tcode{extern}
36083603
specifier is explicitly used.
@@ -3674,8 +3669,8 @@
36743669
first case and to the lvalue result of the conversion
36753670
in the second case (or, in either case, to the appropriate base class subobject of the object).
36763671
\begin{note}
3677-
The usual lvalue-to-rvalue\iref{conv.lval}, array-to-pointer
3678-
(\ref{conv.array}), and function-to-pointer\iref{conv.func} standard
3672+
The usual lvalue-to-rvalue\iref{conv.lval}, array-to-pointer\iref{conv.array},
3673+
and function-to-pointer\iref{conv.func} standard
36793674
conversions are not needed, and therefore are suppressed, when such
36803675
direct bindings to lvalues are done.
36813676
\end{note}

source/derived.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@
588588
name, parameter-type-list\iref{dcl.fct}, cv-qualification, and ref-qualifier
589589
(or absence of same) as
590590
\tcode{Base::vf} is declared, then \tcode{Derived::vf} is also virtual
591-
(whether or not it is so declared) and it \term{overrides}\footnote{A function with the same name but a different parameter list
592-
(\ref{over}) as a virtual function is not necessarily virtual and
591+
(whether or not it is so declared) and it \term{overrides}\footnote{A function with the same name but a different parameter list\iref{over}
592+
as a virtual function is not necessarily virtual and
593593
does not override. The use of the \tcode{virtual} specifier in the
594594
declaration of an overriding function is legal but redundant (has empty
595595
semantics). Access control\iref{class.access} is not considered in

source/expressions.tex

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@
680680
\pnum
681681
A \grammarterm{lambda-expression} is a prvalue
682682
whose result object is called the \defn{closure object}. A
683-
\grammarterm{lambda-expression} shall not appear in an unevaluated operand
684-
(\ref{expr}), in a \grammarterm{template-argument},
683+
\grammarterm{lambda-expression} shall not appear in an unevaluated operand\iref{expr},
684+
in a \grammarterm{template-argument},
685685
in an \grammarterm{alias-declaration},
686686
in a typedef declaration, or in the declaration of a function or function
687687
template outside its function body and default arguments.
@@ -1836,8 +1836,8 @@
18361836
\end{example}
18371837

18381838
\pnum
1839-
A local parameter shall only appear as an unevaluated operand
1840-
(\ref{expr}) within the \grammarterm{constraint-expression}.
1839+
A local parameter shall only appear as an unevaluated operand\iref{expr}
1840+
within the \grammarterm{constraint-expression}.
18411841
\begin{example}
18421842
\begin{codeblock}
18431843
template<typename T> concept C = requires (T a) {
@@ -2028,8 +2028,8 @@
20282028
checked at the point of call in the calling function. If a constructor
20292029
or destructor for a function parameter throws an exception, the search
20302030
for a handler starts in the scope of the calling function; in
2031-
particular, if the function called has a \grammarterm{function-try-block}
2032-
(\ref{except}) with a handler that could handle the exception,
2031+
particular, if the function called has a \grammarterm{function-try-block}\iref{except}
2032+
with a handler that could handle the exception,
20332033
this handler is not considered.
20342034
\end{example}
20352035

@@ -2275,8 +2275,8 @@
22752275
\grammarterm{id-expression} shall name a member of the class or of one of
22762276
its base classes.
22772277
\begin{note}
2278-
Because the name of a class is inserted in its class scope
2279-
(\ref{class}), the name of a class is also considered a nested
2278+
Because the name of a class is inserted in its class scope\iref{class},
2279+
the name of a class is also considered a nested
22802280
member of that class.
22812281
\end{note}
22822282
\begin{note}
@@ -2785,8 +2785,8 @@
27852785
\indextext{cast!derived class}%
27862786
A prvalue of type ``pointer to \cvqual{cv1} \tcode{B}'', where \tcode{B}
27872787
is a class type, can be converted to a prvalue of type ``pointer to
2788-
\cvqual{cv2} \tcode{D}'', where \tcode{D} is a class derived
2789-
(\ref{class.derived}) from \tcode{B},
2788+
\cvqual{cv2} \tcode{D}'', where \tcode{D} is a class derived\iref{class.derived}
2789+
from \tcode{B},
27902790
if \cvqual{cv2} is the same cv-qualification as,
27912791
or greater cv-qualification than, \cvqual{cv1}.
27922792
If \tcode{B} is a virtual base class of \tcode{D} or
@@ -3279,8 +3279,8 @@
32793279
\pnum
32803280
\indextext{operator!logical negation}%
32813281
The operand of the logical negation operator \tcode{!} is contextually
3282-
converted to \tcode{bool}
3283-
(\ref{conv}); its value is \tcode{true}
3282+
converted to \tcode{bool}\iref{conv};
3283+
its value is \tcode{true}
32843284
if the converted operand is \tcode{false} and \tcode{false} otherwise.
32853285
The type of the result is \tcode{bool}.
32863286

@@ -4000,8 +4000,8 @@
40004000
empty square brackets can follow the \tcode{delete} keyword if the lambda expression is
40014001
enclosed in parentheses.}
40024002
The operand shall be of pointer to object type or of class type. If of
4003-
class type, the operand is contextually implicitly converted
4004-
(\ref{conv}) to a pointer to object
4003+
class type, the operand is contextually implicitly converted\iref{conv}
4004+
to a pointer to object
40054005
type.\footnote{This implies that an object
40064006
cannot be deleted using a pointer of type
40074007
\tcode{void*} because \tcode{void} is not an object type.}
@@ -4746,8 +4746,8 @@
47464746
pointer conversions\iref{conv.ptr},
47474747
function pointer conversions\iref{conv.fctptr}, and
47484748
qualification conversions\iref{conv.qual}
4749-
are performed on both operands to bring them to their composite pointer type
4750-
(\ref{expr}). Comparing pointers is defined as follows:
4749+
are performed on both operands to bring them to their composite pointer type\iref{expr}.
4750+
Comparing pointers is defined as follows:
47514751

47524752
\begin{itemize}
47534753
\item

0 commit comments

Comments
 (0)