Skip to content

Commit fe22f09

Browse files
jensmaurertkoeppe
authored andcommitted
[dcl.dcl] Replace 'could' and 'might'
as directed by ISO/CS.
1 parent 53bde78 commit fe22f09

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

source/declarations.tex

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@
11381138
Redundant cv-qualifications are ignored.
11391139
\begin{note}
11401140
For example,
1141-
these could be introduced by typedefs.
1141+
these can be introduced by typedefs.
11421142
\end{note}
11431143

11441144
\pnum
@@ -1216,9 +1216,9 @@
12161216
\indextext{\idxcode{volatile}!implementation-defined}%
12171217
\begin{note}
12181218
\tcode{volatile} is a hint to the implementation to avoid aggressive
1219-
optimization involving the object because the value of the object might
1220-
be changed by means undetectable by an implementation.
1221-
Furthermore, for some implementations, \tcode{volatile} might indicate that
1219+
optimization involving the object because it is possible for the value of the object
1220+
to change by means undetectable by an implementation.
1221+
Furthermore, for some implementations, \tcode{volatile} can indicate that
12221222
special hardware instructions are required to access the object.
12231223
See~\ref{intro.execution} for detailed semantics. In general, the
12241224
semantics of \tcode{volatile} are intended to be the same in \Cpp{} as
@@ -2369,7 +2369,7 @@
23692369
Just as for the ambiguities mentioned in~\ref{stmt.ambig},
23702370
the resolution is to consider any construct,
23712371
such as the potential parameter declaration,
2372-
that could possibly be a declaration
2372+
that matches the syntax of a declaration
23732373
to be a declaration.
23742374
\begin{note}
23752375
A declaration can be explicitly disambiguated by adding parentheses
@@ -2397,10 +2397,9 @@
23972397
An ambiguity can arise from the similarity between a function-style
23982398
cast and a
23992399
\grammarterm{type-id}.
2400-
The resolution is that any construct that could possibly be a
2401-
\grammarterm{type-id}
2402-
in its syntactic context shall be considered a
2403-
\grammarterm{type-id}.
2400+
The resolution is that any construct
2401+
that matches the syntax of a \grammarterm{type-id}
2402+
is interpreted as a \grammarterm{type-id}.
24042403
\begin{example}
24052404
\begin{codeblock}
24062405
template <class T> struct X {};
@@ -4761,9 +4760,9 @@
47614760
no constructor of the object's class
47624761
is invoked for the initialization.
47634762
\begin{note}
4764-
Such an object might have been value-initialized
4765-
or initialized by aggregate initialization\iref{dcl.init.aggr}
4766-
or by an inherited constructor\iref{class.inhctor.init}.
4763+
Such an object can use value-initializion,
4764+
aggregate initialization\iref{dcl.init.aggr},
4765+
or initialization by an inherited constructor\iref{class.inhctor.init}.
47674766
\end{note}
47684767
Destroying an object of class type invokes the destructor of the class.
47694768
Destroying a scalar type has no effect other than
@@ -8167,7 +8166,7 @@
81678166
\begin{note}
81688167
Some of the properties associated with an entity with language linkage
81698168
are specific to each implementation and are not described here. For
8170-
example, a particular language linkage might be associated with a
8169+
example, a particular language linkage can be associated with a
81718170
particular form of representing names of objects and functions with
81728171
external linkage, or with a particular calling convention, etc.
81738172
\end{note}
@@ -8742,7 +8741,7 @@
87428741
\pnum
87438742
\begin{note}
87448743
The \tcode{carries_dependency} attribute does not change the meaning of the
8745-
program, but might result in generation of more efficient code.
8744+
program, but can result in generation of more efficient code.
87468745
\end{note}
87478746

87488747
\pnum
@@ -8785,9 +8784,10 @@
87858784
hardware memory ordering instructions (a.k.a.\ fences).
87868785
Function \tcode{g}'s second parameter has a \tcode{carries_dependency} attribute,
87878786
but its first parameter does not. Therefore, function \tcode{h}'s first call to
8788-
\tcode{g} carries a dependency into \tcode{g}, but its second call does not. The
8789-
implementation might need to insert a fence prior to the second call to
8790-
\tcode{g}.
8787+
\tcode{g} carries a dependency into \tcode{g}, but its second call does not.
8788+
It is possible
8789+
that the implementation needs to insert a fence
8790+
prior to the second call to \tcode{g}.
87918791
\end{example}
87928792
\indextext{attribute|)}%
87938793
\indextext{declaration|)}
@@ -8868,7 +8868,7 @@
88688868
\pnum
88698869
\recommended
88708870
The use of a fallthrough statement should suppress
8871-
a warning that an implementation might otherwise issue
8871+
any warning that an implementation would otherwise issue
88728872
for a case or default label that is reachable
88738873
from another case or default label along some path of execution.
88748874
Implementations should issue a warning
@@ -9124,7 +9124,7 @@
91249124
\pnum
91259125
\recommended
91269126
Implementations should issue a
9127-
warning if a function marked \tcode{[[noreturn]]} might return.
9127+
warning if a function marked \tcode{[[noreturn]]} can return.
91289128

91299129
\pnum
91309130
\begin{example}
@@ -9174,6 +9174,6 @@
91749174
};
91759175
\end{codeblock}
91769176
Here, \tcode{hasher}, \tcode{pred}, and \tcode{alloc}
9177-
could have the same address as \tcode{buckets}
9177+
can have the same address as \tcode{buckets}
91789178
if their respective types are all empty.
91799179
\end{example}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy