Skip to content

Commit e34e62d

Browse files
AlisdairMtkoeppe
authored andcommitted
[expr.assign] Rename stable label
This removes an easily avoidable vulgarity, and the original label remains as a greppable prefix of the new one.
1 parent 7566675 commit e34e62d

9 files changed

+20
-17
lines changed

source/basic.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@
674674
is defined\iref{basic.def} or called\iref{expr.call}, or
675675
\item a class with a base class of type \tcode{T} is
676676
defined\iref{class.derived}, or
677-
\item an lvalue of type \tcode{T} is assigned to\iref{expr.ass}, or
677+
\item an lvalue of type \tcode{T} is assigned to\iref{expr.assign}, or
678678
\item the type \tcode{T} is the subject of an
679679
\keyword{alignof} expression\iref{expr.alignof}, or
680680
\item an \grammarterm{exception-declaration} has type \tcode{T}, reference to
@@ -3907,7 +3907,7 @@
39073907
\end{itemize}
39083908
If no initialization is performed for an object (including subobjects),
39093909
such a byte retains its initial value
3910-
until that value is replaced\iref{dcl.init.general,expr.ass}.
3910+
until that value is replaced\iref{dcl.init.general,expr.assign}.
39113911
If any bit in the value representation has an indeterminate value,
39123912
the object has an indeterminate value;
39133913
otherwise, if any bit in the value representation has an erroneous value,
@@ -3949,7 +3949,7 @@
39493949
If an indeterminate or erroneous value of
39503950
unsigned ordinary character type or \tcode{std::byte} type
39513951
is produced by the evaluation of
3952-
the right operand of a simple assignment operator\iref{expr.ass}
3952+
the right operand of a simple assignment operator\iref{expr.assign}
39533953
whose first operand is an lvalue of
39543954
unsigned ordinary character type or \tcode{std::byte} type,
39553955
an indeterminate value or that erroneous value, respectively, replaces

source/classes.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,7 @@
31173117
Otherwise, $S(\mathtt{E})$ is empty.
31183118
\end{itemize}
31193119
In an assignment expression of the form \tcode{E1 = E2}
3120-
that uses either the built-in assignment operator\iref{expr.ass}
3120+
that uses either the built-in assignment operator\iref{expr.assign}
31213121
or a trivial assignment operator\iref{class.copy.assign},
31223122
for each element \tcode{X} of $S($\tcode{E1}$)$ and
31233123
each anonymous union member \tcode{X}\iref{class.union.anon} that

source/compatibility.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@
29722972
\howwide
29732973
Rare.
29742974

2975-
\diffref{expr.cond,expr.ass,expr.comma}
2975+
\diffref{expr.cond,expr.assign,expr.comma}
29762976
\indextext{conversion!lvalue-to-rvalue}%
29772977
\indextext{rvalue!lvalue conversion to}%
29782978
\indextext{lvalue}%

source/declarations.tex

+4-4
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@
12771277

12781278
\pnum
12791279
\indextext{const object!undefined change to}%
1280-
Any attempt to modify\iref{expr.ass,expr.post.incr,expr.pre.incr} a
1280+
Any attempt to modify\iref{expr.assign,expr.post.incr,expr.pre.incr} a
12811281
const object\iref{basic.type.qualifier} during its
12821282
lifetime\iref{basic.life} results in undefined behavior.
12831283
\begin{example}
@@ -3007,7 +3007,7 @@
30073007
\end{example}
30083008

30093009
\pnum
3010-
See also~\ref{expr.ass} and~\ref{dcl.init}.
3010+
See also~\ref{expr.assign} and~\ref{dcl.init}.
30113011

30123012
\pnum
30133013
\begin{note}
@@ -5684,7 +5684,7 @@
56845684
A reference cannot be changed to refer to another object after initialization.
56855685
\indextext{assignment!reference}%
56865686
\begin{note}
5687-
Assignment to a reference assigns to the object referred to by the reference\iref{expr.ass}.
5687+
Assignment to a reference assigns to the object referred to by the reference\iref{expr.assign}.
56885688
\end{note}
56895689
\indextext{argument passing!reference and}%
56905690
Argument passing\iref{expr.call}
@@ -5939,7 +5939,7 @@
59395939
\item as an argument to a constructor invocation\iref{dcl.init,expr.type.conv},
59405940
\item as an initializer for a non-static data member\iref{class.mem},
59415941
\item in a \grammarterm{mem-initializer}\iref{class.base.init}, or
5942-
\item on the right-hand side of an assignment\iref{expr.ass}.
5942+
\item on the right-hand side of an assignment\iref{expr.assign}.
59435943
\end{itemize}
59445944

59455945
\begin{example}

source/expressions.tex

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
\begin{footnote}
132132
The cast and assignment operators must still perform their specific
133133
conversions as described in~\ref{expr.type.conv}, \ref{expr.cast},
134-
\ref{expr.static.cast} and~\ref{expr.ass}.
134+
\ref{expr.static.cast} and~\ref{expr.assign}.
135135
\end{footnote}
136136

137137
\rSec1[expr.prop]{Properties of expressions}
@@ -297,7 +297,7 @@
297297
\begin{note}
298298
A program that attempts
299299
to modify an object through a nonmodifiable lvalue or through an rvalue
300-
is ill-formed\iref{expr.ass,expr.post.incr,expr.pre.incr}.
300+
is ill-formed\iref{expr.assign,expr.post.incr,expr.pre.incr}.
301301
\end{note}
302302

303303
\pnum
@@ -4864,7 +4864,7 @@
48644864
An operand with volatile-qualified type is deprecated;
48654865
see~\ref{depr.volatile.type}.
48664866
The expression \tcode{++x} is otherwise equivalent to \tcode{x+=1} and
4867-
the expression \tcode{--x} is otherwise equivalent to \tcode{x-=1}\iref{expr.ass}.
4867+
the expression \tcode{--x} is otherwise equivalent to \tcode{x-=1}\iref{expr.assign}.
48684868
\begin{note}
48694869
For postfix increment and decrement, see~\ref{expr.post.incr}.
48704870
\end{note}
@@ -7296,7 +7296,7 @@
72967296
\end{codeblock}
72977297
\end{example}
72987298

7299-
\rSec2[expr.ass]{Assignment and compound assignment operators}%
7299+
\rSec2[expr.assign]{Assignment and compound assignment operators}%
73007300
\indextext{expression!assignment and compound assignment}
73017301

73027302
\pnum
@@ -7827,7 +7827,7 @@
78277827
a \keyword{reinterpret_cast}\iref{expr.reinterpret.cast};
78287828

78297829
\item
7830-
a modification of an object\iref{expr.ass,expr.post.incr,expr.pre.incr}
7830+
a modification of an object\iref{expr.assign,expr.post.incr,expr.pre.incr}
78317831
unless it is applied to a non-volatile lvalue of literal type
78327832
that refers to a non-volatile object
78337833
whose lifetime began within the evaluation of $E$;

source/future.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
\pnum
7474
Certain assignments
7575
where the left operand is a volatile-qualified non-class type
76-
are deprecated; see~\ref{expr.ass}.
76+
are deprecated; see~\ref{expr.assign}.
7777

7878
\begin{example}
7979
\begin{codeblock}

source/intro.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
Only glvalues of scalar type can be used to access objects.
9393
Reads of scalar objects are described in \ref{conv.lval} and
9494
modifications of scalar objects are described in
95-
\ref{expr.ass}, \ref{expr.post.incr}, and \ref{expr.pre.incr}.
95+
\ref{expr.assign}, \ref{expr.post.incr}, and \ref{expr.pre.incr}.
9696
Attempts to read or modify an object of class type
9797
typically invoke a constructor\iref{class.ctor}
9898
or assignment operator\iref{class.copy.assign};

source/overloading.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -3093,7 +3093,7 @@
30933093
\item
30943094
an object or reference being initialized\iref{dcl.init,dcl.init.ref,dcl.init.list},
30953095
\item
3096-
the left side of an assignment\iref{expr.ass},
3096+
the left side of an assignment\iref{expr.assign},
30973097
\item
30983098
a parameter of a function\iref{expr.call},
30993099
\item

source/xrefdelta.tex

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
% https://github.com/cplusplus/draft/pull/7345
102102
\movedxref{basic.stc.inherit}{basic.stc.general}
103103

104+
% https://github.com/cplusplus/draft/pull/7524
105+
\movedxref{expr.ass}{expr.assign}
106+
104107
%%% Deprecated features.
105108
%%% Example:
106109
%

0 commit comments

Comments
 (0)