Skip to content

Commit 85a4860

Browse files
committed
[basic.scope.scope] Rename to [basic.scope.general].
1 parent 8bb3a13 commit 85a4860

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

source/basic.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,14 @@
532532

533533
\pnum
534534
A local entity\iref{basic.pre}
535-
is \defn{odr-usable} in a scope\iref{basic.scope.scope} if
535+
is \defn{odr-usable} in a scope\iref{basic.scope.general} if
536536
\begin{itemize}
537537
\item either the local entity is not \tcode{*\keyword{this}}, or
538538
an enclosing class or non-lambda function parameter scope exists and,
539539
if the innermost such scope is a function parameter scope,
540540
it corresponds to a non-static member function, and
541541
\item
542-
for each intervening scope\iref{basic.scope.scope}
542+
for each intervening scope\iref{basic.scope.general}
543543
between the point at which the entity is introduced and the scope
544544
(where \tcode{*\keyword{this}} is considered to be introduced
545545
within the innermost enclosing class or non-lambda function definition scope),
@@ -873,7 +873,7 @@
873873
\rSec1[basic.scope]{Scope}%
874874
\indextext{scope|(}
875875

876-
\rSec2[basic.scope.scope]{General}
876+
\rSec2[basic.scope.general]{General}
877877

878878
\pnum
879879
The declarations in a program appear in a number of \defnx{scopes}{scope}
@@ -1725,7 +1725,7 @@
17251725
conversion function templates that are members of $T$ are considered.
17261726
For each such template $F$, the lookup set $S(t,T)$ is constructed,
17271727
considering a function template declaration to have the name $t$
1728-
only if it corresponds to a declaration of $F$\iref{basic.scope.scope}.
1728+
only if it corresponds to a declaration of $F$\iref{basic.scope.general}.
17291729
The members of the declaration set of each such lookup set,
17301730
which shall not be an invalid set, are included in the result.
17311731
\begin{note}
@@ -2846,7 +2846,7 @@
28462846
Two declarations of entities declare the same entity
28472847
if, considering declarations of unnamed types to introduce their names
28482848
for linkage purposes, if any\iref{dcl.typedef,dcl.enum},
2849-
they correspond\iref{basic.scope.scope},
2849+
they correspond\iref{basic.scope.general},
28502850
have the same target scope that is not a function or template parameter scope,
28512851
neither is a name-independent declaration,
28522852
and either

source/classes.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
\end{itemize}
602602
\begin{note}
603603
A single name can denote several member functions provided their types
604-
are sufficiently different\iref{basic.scope.scope}.
604+
are sufficiently different\iref{basic.scope.general}.
605605
\end{note}
606606

607607
\pnum
@@ -3686,7 +3686,7 @@
36863686
If a virtual member function $F$ is declared in a class $B$, and,
36873687
in a class $D$ derived (directly or indirectly) from $B$,
36883688
a declaration of a member function $G$
3689-
corresponds\iref{basic.scope.scope} to a declaration of $F$,
3689+
corresponds\iref{basic.scope.general} to a declaration of $F$,
36903690
ignoring trailing \grammarterm{requires-clause}s,
36913691
\indextext{override|see{function, virtual, override}}%
36923692
then $G$ \defnx{overrides}{function!virtual!override}

source/declarations.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
\pnum
127127
\indextext{declaration}%
128128
\indextext{scope}%
129-
Certain declarations contain one or more scopes\iref{basic.scope.scope}.
129+
Certain declarations contain one or more scopes\iref{basic.scope.general}.
130130
Unless otherwise stated, utterances in
131131
\ref{dcl.dcl} about components in, of, or contained by a
132132
declaration or subcomponent thereof refer only to those components of
@@ -2703,7 +2703,7 @@
27032703
all function declarations are discarded;
27042704
\item
27052705
otherwise,
2706-
if the \grammarterm{declarator} corresponds\iref{basic.scope.scope} to
2706+
if the \grammarterm{declarator} corresponds\iref{basic.scope.general} to
27072707
any declaration found of a non-template function,
27082708
all function template declarations are discarded;
27092709
\item
@@ -7405,7 +7405,7 @@
74057405
shall not inhabit a class scope and
74067406
shall correspond to one or more declarations nominable
74077407
in the class, class template, or namespace
7408-
to which the \grammarterm{nested-name-specifier} refers\iref{basic.scope.scope}.
7408+
to which the \grammarterm{nested-name-specifier} refers\iref{basic.scope.general}.
74097409
All those declarations shall have the same target scope;
74107410
the target scope of $D$ is that scope.
74117411

@@ -8337,7 +8337,7 @@
83378337
\pnum
83388338
If a declaration named by a \grammarterm{using-declaration}
83398339
that inhabits the target scope of another declaration $B$
8340-
potentially conflicts with it\iref{basic.scope.scope}, and
8340+
potentially conflicts with it\iref{basic.scope.general}, and
83418341
either is reachable from the other, the program is ill-formed
83428342
unless $B$ is name-independent and
83438343
the \grammarterm{using-declaration} precedes $B$.

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@
795795
unless a search for the name \tcode{\keyword{operator}!=} in the scope $S$
796796
from the instantiation context of the operator expression
797797
finds a function or function template
798-
that would correspond\iref{basic.scope.scope} to \tcode{F}
798+
that would correspond\iref{basic.scope.general} to \tcode{F}
799799
if its name were \tcode{\keyword{operator}==},
800800
where $S$ is the scope of the class type of \tcode{o}
801801
if \tcode{F} is a class member, and

source/templates.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
\pnum
143143
\begin{note}
144144
A template cannot have the same name as any other
145-
name bound in the same scope\iref{basic.scope.scope}, except
145+
name bound in the same scope\iref{basic.scope.general}, except
146146
that a function template can share a name with \grammarterm{using-declarator}s,
147147
a type, non-template functions\iref{dcl.fct} and/or function templates\iref{temp.over}.
148148
Specializations, including partial specializations\iref{temp.spec.partial},
@@ -3980,7 +3980,7 @@
39803980
\item
39813981
introduce the same name,
39823982
\item
3983-
have corresponding signatures\iref{basic.scope.scope},
3983+
have corresponding signatures\iref{basic.scope.general},
39843984
\item
39853985
would declare the same entity,
39863986
when considering $A$ and $B$ to correspond in that determination\iref{basic.link}, and
@@ -6503,7 +6503,7 @@
65036503
\end{example}
65046504

65056505
\pnum
6506-
An explicit instantiation does not introduce a name\iref{basic.scope.scope}.
6506+
An explicit instantiation does not introduce a name\iref{basic.scope.general}.
65076507
A declaration of a function template, a variable template, a member function
65086508
or static data member
65096509
of a class template, or a member function template of a class or class
@@ -6701,7 +6701,7 @@
67016701
may be defined\iref{dcl.meaning,class.mem,temp.mem}.
67026702

67036703
\pnum
6704-
An explicit specialization does not introduce a name\iref{basic.scope.scope}.
6704+
An explicit specialization does not introduce a name\iref{basic.scope.general}.
67056705
A declaration of a function template, class template, or variable template being explicitly
67066706
specialized shall be reachable from the declaration of
67076707
the explicit specialization.

source/xrefdelta.tex

Lines changed: 3 additions & 0 deletions
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+
% [basic.scope.scope] Rename to [basic.scope.general].
105+
\movedxref{basic.scope.scope}{basic.scope.general}
106+
104107
%%% Deprecated features.
105108
%%% Example:
106109
%

source/xrefprev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
\glossaryentry{basic.def@ {\memgloterm{basic.def}}{\memglodesc{(\ref {basic.def})}} {\memgloref{}}|memjustarg}{33}
9999
\glossaryentry{basic.def.odr@ {\memgloterm{basic.def.odr}}{\memglodesc{(\ref {basic.def.odr})}} {\memgloref{}}|memjustarg}{34}
100100
\glossaryentry{basic.scope@ {\memgloterm{basic.scope}}{\memglodesc{(\ref {basic.scope})}} {\memgloref{}}|memjustarg}{39}
101-
\glossaryentry{basic.scope.scope@ {\memgloterm{basic.scope.scope}}{\memglodesc{(\ref {basic.scope.scope})}} {\memgloref{}}|memjustarg}{39}
101+
\glossaryentry{basic.scope.general@ {\memgloterm{basic.scope.general}}{\memglodesc{(\ref {basic.scope.general})}} {\memgloref{}}|memjustarg}{39}
102102
\glossaryentry{basic.scope.pdecl@ {\memgloterm{basic.scope.pdecl}}{\memglodesc{(\ref {basic.scope.pdecl})}} {\memgloref{}}|memjustarg}{41}
103103
\glossaryentry{basic.scope.block@ {\memgloterm{basic.scope.block}}{\memglodesc{(\ref {basic.scope.block})}} {\memgloref{}}|memjustarg}{42}
104104
\glossaryentry{basic.scope.param@ {\memgloterm{basic.scope.param}}{\memglodesc{(\ref {basic.scope.param})}} {\memgloref{}}|memjustarg}{43}

0 commit comments

Comments
 (0)