Skip to content

Commit a0fdc64

Browse files
committed
[dcl.dcl][stmt.stmt] Remove tautonyms from top level stable labels
Per comment on issue #5315. Thanks to Jonathan Wakely for the notion of tautonyms.
1 parent bf43925 commit a0fdc64

File tree

6 files changed

+27
-17
lines changed

6 files changed

+27
-17
lines changed

source/basic.tex

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

source/compatibility.tex

+9-9
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
\end{codeblock}
5454
\end{example}
5555

56-
\rSec2[diff.cpp23.dcl.dcl]{\ref{dcl.dcl}: declarations}
56+
\rSec2[diff.cpp23.dcl]{\ref{dcl}: declarations}
5757

5858
\diffref{dcl.init.list}
5959
\change
@@ -359,7 +359,7 @@
359359
\end{codeblock}
360360
\end{example}
361361

362-
\rSec2[diff.cpp20.stmt]{\ref{stmt.stmt}: statements}
362+
\rSec2[diff.cpp20.stmt]{\ref{stmt}: statements}
363363

364364
\diffref{stmt.ranged}
365365
\change
@@ -383,7 +383,7 @@
383383
\end{codeblock}
384384
\end{example}
385385

386-
\rSec2[diff.cpp20.dcl]{\ref{dcl.dcl}: declarations}
386+
\rSec2[diff.cpp20.dcl]{\ref{dcl}: declarations}
387387

388388
\diffref{dcl.init.string}
389389
\change
@@ -850,7 +850,7 @@
850850
if those entities are only referenced in contexts
851851
that do not result in an odr-use.
852852

853-
\rSec2[diff.cpp17.dcl.dcl]{\ref{dcl.dcl}: declarations}
853+
\rSec2[diff.cpp17.dcl]{\ref{dcl}: declarations}
854854

855855
\diffref{dcl.typedef}
856856
\change
@@ -1489,7 +1489,7 @@
14891489
\tcode{::operator new(std::size_t, std::align_val_t)}
14901490
is used instead.
14911491

1492-
\rSec2[diff.cpp14.dcl.dcl]{\ref{dcl.dcl}: declarations}
1492+
\rSec2[diff.cpp14.dcl]{\ref{dcl}: declarations}
14931493

14941494
\diffref{dcl.stc}
14951495
\indextext{\idxcode{register} storage class}%
@@ -1875,7 +1875,7 @@
18751875
revision of \Cpp{}, it yields \tcode{sizeof(const char[1])}.
18761876
\end{example}
18771877

1878-
\rSec2[diff.cpp11.dcl.dcl]{\ref{dcl.dcl}: declarations}
1878+
\rSec2[diff.cpp11.dcl]{\ref{dcl}: declarations}
18791879

18801880
\diffref{dcl.constexpr}
18811881
\change
@@ -2117,7 +2117,7 @@
21172117
\end{codeblock}
21182118
\end{example}
21192119

2120-
\rSec2[diff.cpp03.dcl.dcl]{\ref{dcl.dcl}: declarations}
2120+
\rSec2[diff.cpp03.dcl]{\ref{dcl}: declarations}
21212121

21222122
\diffref{dcl.spec}
21232123
\change
@@ -2923,7 +2923,7 @@
29232923
\howwide
29242924
Rare.
29252925

2926-
\rSec2[diff.stat]{\ref{stmt.stmt}: statements}
2926+
\rSec2[diff.stmt]{\ref{stmt}: statements}
29272927

29282928
\diffref{stmt.switch,stmt.goto}
29292929
\change
@@ -2971,7 +2971,7 @@
29712971
For several years, many existing C implementations have produced warnings in
29722972
this case.
29732973

2974-
\rSec2[diff.dcl]{\ref{dcl.dcl}: declarations}
2974+
\rSec2[diff.dcl]{\ref{dcl}: declarations}
29752975

29762976
\diffref{dcl.stc}
29772977
\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}
@@ -129,7 +129,7 @@
129129
\indextext{scope}%
130130
Certain declarations contain one or more scopes\iref{basic.scope.scope}.
131131
Unless otherwise stated, utterances in
132-
\ref{dcl.dcl} about components in, of, or contained by a
132+
\ref{dcl} about components in, of, or contained by a
133133
declaration or subcomponent thereof refer only to those components of
134134
the declaration that are \emph{not} nested within scopes nested within
135135
the declaration.
@@ -8838,7 +8838,7 @@
88388838
\pnum
88398839
Each \grammarterm{attribute-specifier-seq} is said to \defn{appertain} to some entity or
88408840
statement, identified by the syntactic context
8841-
where it appears\iref{stmt.stmt,dcl.dcl,dcl.decl}.
8841+
where it appears\iref{stmt,dcl,dcl.decl}.
88428842
If an \grammarterm{attribute-specifier-seq} that appertains to some
88438843
entity or statement contains an \grammarterm{attribute} or \grammarterm{alignment-specifier} that
88448844
is not allowed to apply to that

source/expressions.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@
14781478
\indextext{identifier}%
14791479
An \grammarterm{identifier} is only
14801480
an \grammarterm{id-expression} if it has
1481-
been suitably declared\iref{dcl.dcl}
1481+
been suitably declared\iref{dcl}
14821482
or if it appears as part of a \grammarterm{declarator-id}\iref{dcl.decl}.
14831483
An \grammarterm{identifier} that names a coroutine parameter
14841484
refers to the copy of the parameter\iref{dcl.fct.def.coroutine}.
@@ -7724,7 +7724,7 @@
77247724
\item
77257725
a \keyword{goto} statement\iref{stmt.goto}.
77267726
\begin{note}
7727-
A \keyword{goto} statement introduced by equivalence\iref{stmt.stmt}
7727+
A \keyword{goto} statement introduced by equivalence\iref{stmt}
77287728
is not in scope.
77297729
For example, a \keyword{while} statement\iref{stmt.while}
77307730
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

+10
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,19 @@
9595
\movedxref{stoptoken.cons}{stopsource}
9696
\movedxref{stoptoken.nonmembers}{stopsource}
9797

98+
% https://github.com/cplusplus/draft/pull/7179
99+
\movedxref{dcl.dcl}{dcl}
100+
\movedxref{diff.cpp03.dcl.dcl}{diff.cpp03.dcl}
101+
\movedxref{diff.cpp11.dcl.dcl}{diff.cpp11.dcl}
102+
\movedxref{diff.cpp14.dcl.dcl}{diff.cpp14.dcl}
103+
\movedxref{diff.cpp17.dcl.dcl}{diff.cpp17.dcl}
104+
\movedxref{diff.stat}{diff.stmt}
105+
\movedxref{stmt.stmt}{stmt}
106+
98107
% https://github.com/cplusplus/draft/pull/7345
99108
\movedxref{basic.stc.inherit}{basic.stc.general}
100109

110+
101111
%%% Deprecated features.
102112
%%% Example:
103113
%

0 commit comments

Comments
 (0)