Skip to content

Commit 9282117

Browse files
jensmaurertkoeppe
authored andcommitted
[stmt, dcl] Rename labels
1 parent ce8565e commit 9282117

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

source/basic.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
\indextext{declaration!definition versus}%
138138
\indextext{declaration}%
139139
\indextext{declaration!name}%
140-
A declaration\iref{dcl.dcl} may (re)introduce
140+
A declaration\iref{dcl} may (re)introduce
141141
one or more names and/or entities into a translation
142142
unit.
143143
If so, the

source/compatibility.tex

+9-9
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
\end{codeblock}
7373
\end{example}
7474

75-
\rSec2[diff.cpp23.dcl.dcl]{\ref{dcl.dcl}: declarations}
75+
\rSec2[diff.cpp23.dcl.dcl]{\ref{dcl}: declarations}
7676

7777
\diffref{dcl.init.list}
7878
\change
@@ -413,7 +413,7 @@
413413
\end{codeblock}
414414
\end{example}
415415

416-
\rSec2[diff.cpp20.stmt]{\ref{stmt.stmt}: statements}
416+
\rSec2[diff.cpp20.stmt]{\ref{stmt}: statements}
417417

418418
\diffref{stmt.ranged}
419419
\change
@@ -437,7 +437,7 @@
437437
\end{codeblock}
438438
\end{example}
439439

440-
\rSec2[diff.cpp20.dcl]{\ref{dcl.dcl}: declarations}
440+
\rSec2[diff.cpp20.dcl]{\ref{dcl}: declarations}
441441

442442
\diffref{dcl.init.string}
443443
\change
@@ -904,7 +904,7 @@
904904
if those entities are only referenced in contexts
905905
that do not result in an odr-use.
906906

907-
\rSec2[diff.cpp17.dcl.dcl]{\ref{dcl.dcl}: declarations}
907+
\rSec2[diff.cpp17.dcl.dcl]{\ref{dcl}: declarations}
908908

909909
\diffref{dcl.typedef}
910910
\change
@@ -1544,7 +1544,7 @@
15441544
\tcode{::operator new(std::size_t, std::align_val_t)}
15451545
is used instead.
15461546

1547-
\rSec2[diff.cpp14.dcl.dcl]{\ref{dcl.dcl}: declarations}
1547+
\rSec2[diff.cpp14.dcl.dcl]{\ref{dcl}: declarations}
15481548

15491549
\diffref{dcl.stc}
15501550
\indextext{\idxcode{register} storage class}%
@@ -1930,7 +1930,7 @@
19301930
revision of \Cpp{}, it yields \tcode{sizeof(const char[1])}.
19311931
\end{example}
19321932

1933-
\rSec2[diff.cpp11.dcl.dcl]{\ref{dcl.dcl}: declarations}
1933+
\rSec2[diff.cpp11.dcl.dcl]{\ref{dcl}: declarations}
19341934

19351935
\diffref{dcl.constexpr}
19361936
\change
@@ -2172,7 +2172,7 @@
21722172
\end{codeblock}
21732173
\end{example}
21742174

2175-
\rSec2[diff.cpp03.dcl.dcl]{\ref{dcl.dcl}: declarations}
2175+
\rSec2[diff.cpp03.dcl.dcl]{\ref{dcl}: declarations}
21762176

21772177
\diffref{dcl.spec}
21782178
\change
@@ -3002,7 +3002,7 @@
30023002
\howwide
30033003
Rare.
30043004

3005-
\rSec2[diff.stat]{\ref{stmt.stmt}: statements}
3005+
\rSec2[diff.stat]{\ref{stmt}: statements}
30063006

30073007
\diffref{stmt.switch,stmt.goto}
30083008
\change
@@ -3050,7 +3050,7 @@
30503050
For several years, many existing C implementations have produced warnings in
30513051
this case.
30523052

3053-
\rSec2[diff.dcl]{\ref{dcl.dcl}: declarations}
3053+
\rSec2[diff.dcl]{\ref{dcl}: declarations}
30543054

30553055
\diffref{dcl.stc}
30563056
\change

source/declarations.tex

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%!TEX root = std.tex
2-
\rSec0[dcl.dcl]{Declarations}%
2+
\rSec0[dcl]{Declarations}%
33
\indextext{declaration|(}
44

55
\gramSec[gram.dcl]{Declarations}
@@ -128,7 +128,7 @@
128128
\indextext{scope}%
129129
Certain declarations contain one or more scopes\iref{basic.scope.scope}.
130130
Unless otherwise stated, utterances in
131-
\ref{dcl.dcl} about components in, of, or contained by a
131+
\ref{dcl} about components in, of, or contained by a
132132
declaration or subcomponent thereof refer only to those components of
133133
the declaration that are \emph{not} nested within scopes nested within
134134
the declaration.
@@ -8923,7 +8923,7 @@
89238923
\pnum
89248924
Each \grammarterm{attribute-specifier-seq} is said to \defn{appertain} to some entity or
89258925
statement, identified by the syntactic context
8926-
where it appears\iref{stmt.stmt,dcl.dcl,dcl.decl}.
8926+
where it appears\iref{stmt,dcl,dcl.decl}.
89278927
If an \grammarterm{attribute-specifier-seq} that appertains to some
89288928
entity or statement contains an \grammarterm{attribute} or \grammarterm{alignment-specifier} that
89298929
is not allowed to apply to that

source/expressions.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@
14991499
\indextext{identifier}%
15001500
An \grammarterm{identifier} is only
15011501
an \grammarterm{id-expression} if it has
1502-
been suitably declared\iref{dcl.dcl}
1502+
been suitably declared\iref{dcl}
15031503
or if it appears as part of a \grammarterm{declarator-id}\iref{dcl.decl}.
15041504
An \grammarterm{identifier} that names a coroutine parameter
15051505
refers to the copy of the parameter\iref{dcl.fct.def.coroutine}.
@@ -7921,7 +7921,7 @@
79217921
\item
79227922
a \keyword{goto} statement\iref{stmt.goto}.
79237923
\begin{note}
7924-
A \keyword{goto} statement introduced by equivalence\iref{stmt.stmt}
7924+
A \keyword{goto} statement introduced by equivalence\iref{stmt}
79257925
is not in scope.
79267926
For example, a \keyword{while} statement\iref{stmt.while}
79277927
can be executed during constant evaluation.

source/statements.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%!TEX root = std.tex
2-
\rSec0[stmt.stmt]{Statements}%
2+
\rSec0[stmt]{Statements}%
33
\indextext{statement|(}
44

55
\gramSec[gram.stmt]{Statements}
@@ -92,7 +92,7 @@
9292
the \grammarterm{condition} is a structured binding declaration\iref{dcl.pre}.
9393
A \grammarterm{condition} that is
9494
neither an \grammarterm{expression} nor a structured binding declaration
95-
is a declaration\iref{dcl.dcl}.
95+
is a declaration\iref{dcl}.
9696
The \grammarterm{declarator} shall not
9797
specify a function or an array. The \grammarterm{decl-specifier-seq} shall not
9898
define a class or enumeration. If the \keyword{auto} \grammarterm{type-specifier} appears in

source/xrefdelta.tex

+4
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@
105105
\movedxref{expr.ass}{expr.assign}
106106
\movedxref{over.ass}{over.assign}
107107

108+
% CWG 2024-11-20 in Wroclaw; https://github.com/cplusplus/draft/pull/7485
109+
\movedxref{stmt.stmt}{stmt}
110+
\movedxref{dcl.dcl}{dcl}
111+
108112
%%% Deprecated features.
109113
%%% Example:
110114
%

0 commit comments

Comments
 (0)