Skip to content

Commit 58a489c

Browse files
Eelistkoeppe
authored andcommitted
Remove trailing whitespace. (#1682)
1 parent ee7cfd9 commit 58a489c

File tree

5 files changed

+125
-125
lines changed

5 files changed

+125
-125
lines changed

source/declarators.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,25 @@
9999
\pnum
100100
The optional \grammarterm{requires-clause} (Clause~\ref{temp}) in an
101101
\grammarterm{init-declarator} or \grammarterm{member-declarator}
102-
shall not be present when the declarator does not declare a
102+
shall not be present when the declarator does not declare a
103103
function (\ref{dcl.fct}).
104-
%
105-
When present after a declarator, the \grammarterm{requires-clause}
104+
%
105+
When present after a declarator, the \grammarterm{requires-clause}
106106
is called the \defnx{trailing \grammarterm{requires-clause}{}}{%
107107
trailing requires-clause@trailing \grammarterm{requires-clause}}.
108108
The trailing \grammarterm{requires-clause} introduces the
109109
\grammarterm{constraint-expression} that results from interpreting
110110
its \grammarterm{constraint-logical-or-expression} as a
111111
\grammarterm{constraint-expression}.
112-
%
112+
%
113113
\begin{example}
114114
\begin{codeblock}
115115
void f1(int a) requires true; // OK
116116
auto f2(int a) -> bool requires true; // OK
117117
auto f3(int a) requires true -> bool; // error: \grammarterm{requires-clause} precedes \grammarterm{trailing-return-type}
118118
void (*pf)() requires true; // error: constraint on a variable
119119
void g(int (*)() requires true); // error: constraint on a \grammarterm{parameter-declaration}
120-
120+
121121
auto* p = new void(*)(char) requires true; // error: not a function declaration
122122
\end{codeblock}
123123
\end{example}
@@ -1430,7 +1430,7 @@
14301430
\indextext{type!function}%
14311431
A single name can be used for several different functions in a single scope;
14321432
this is function overloading (Clause~\ref{over}).
1433-
All declarations for a function shall have equivalent return types,
1433+
All declarations for a function shall have equivalent return types,
14341434
parameter-type-lists, and \grammarterm{requires-clause}{s} (\ref{temp.over.link}).
14351435
The type of a function is determined using the following rules.
14361436
The type of each parameter (including function parameter packs) is

source/expressions.tex

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
\pnum
485485
An \grammarterm{id-expression}
486486
that denotes the specialization of a concept~(\ref{temp.concept})
487-
results in a prvalue of type \tcode{bool}.
487+
results in a prvalue of type \tcode{bool}.
488488
The expression is \tcode{true} if
489489
the concept's normalized~(\ref{temp.constr.decl})
490490
\grammarterm{constraint-expression}
@@ -1513,7 +1513,7 @@
15131513
\indextext{expression!requires|(}%
15141514

15151515
\pnum
1516-
A \grammarterm{requires-expression} provides a concise way to express
1516+
A \grammarterm{requires-expression} provides a concise way to express
15171517
requirements on template arguments
15181518
that can be checked by name lookup~(\ref{basic.lookup})
15191519
or by checking properties of types and expressions.
@@ -1564,37 +1564,37 @@
15641564
{*i} -> const typename T::type&;
15651565
};
15661566
\end{codeblock}
1567-
A \grammarterm{requires-expression} can also be used in a
1568-
\grammarterm{requires-clause} (Clause~\ref{temp}) as a way of writing ad hoc
1567+
A \grammarterm{requires-expression} can also be used in a
1568+
\grammarterm{requires-clause} (Clause~\ref{temp}) as a way of writing ad hoc
15691569
constraints on template arguments such as the one below:
15701570
\begin{codeblock}
15711571
template<typename T>
15721572
requires requires (T x) { x + x; }
15731573
T add(T a, T b) { return a + b; }
15741574
\end{codeblock}
1575-
The first \tcode{requires} introduces the
1575+
The first \tcode{requires} introduces the
15761576
\grammarterm{requires-clause}, and the second
15771577
introduces the \grammarterm{requires-expression}.
15781578
\end{example}
15791579

15801580
\pnum
15811581
A \grammarterm{requires-expression} may introduce local parameters using a
1582-
\grammarterm{parameter-declaration-clause}~(\ref{dcl.fct}).
1583-
A local parameter of a \grammarterm{requires-expression} shall not have a
1582+
\grammarterm{parameter-declaration-clause}~(\ref{dcl.fct}).
1583+
A local parameter of a \grammarterm{requires-expression} shall not have a
15841584
default argument.
15851585
Each name introduced by a local parameter is in scope from the point
15861586
of its declaration until the closing brace of the
15871587
\grammarterm{requirement-body}.
15881588
These parameters have no linkage, storage, or lifetime; they are only used
15891589
as notation for the purpose of defining \grammarterm{requirement}{}s.
1590-
The \grammarterm{parameter-declaration-clause} of a
1590+
The \grammarterm{parameter-declaration-clause} of a
15911591
\grammarterm{requirement-parameter-list}
15921592
shall not terminate with an ellipsis.
15931593
\begin{example}
15941594
\begin{codeblock}
15951595
template<typename T>
15961596
concept C = requires(T t, ...) { // error: terminates with an ellipsis
1597-
t;
1597+
t;
15981598
};
15991599
\end{codeblock}
16001600
\end{example}
@@ -1603,12 +1603,12 @@
16031603
\indextext{requirement}%
16041604
The \grammarterm{requirement-body} contains
16051605
a sequence of \grammarterm{requirement}{}s.
1606-
These \grammarterm{requirement}{}s may refer to local
1607-
parameters, template parameters, and any other declarations visible from the
1608-
enclosing context.
1606+
These \grammarterm{requirement}{}s may refer to local
1607+
parameters, template parameters, and any other declarations visible from the
1608+
enclosing context.
16091609

16101610
\pnum
1611-
The substitution of template arguments into a \grammarterm{requires-expression}
1611+
The substitution of template arguments into a \grammarterm{requires-expression}
16121612
may result in the formation of invalid types or expressions in its
16131613
requirements or the violation of the semantic constraints of those requirements.
16141614
In such cases, the \grammarterm{requires-expression} evaluates to \tcode{false};
@@ -1623,8 +1623,8 @@
16231623
its requirements, and it does not appear within the declaration of a templated
16241624
entity, then the program is ill-formed.
16251625
\end{note}
1626-
If the substitution of template arguments into a \grammarterm{requirement}
1627-
would always result in a substitution failure, the program is ill-formed;
1626+
If the substitution of template arguments into a \grammarterm{requirement}
1627+
would always result in a substitution failure, the program is ill-formed;
16281628
no diagnostic required.
16291629
\begin{example}
16301630
\begin{codeblock}
@@ -1687,12 +1687,12 @@
16871687
\end{example}
16881688

16891689
\pnum
1690-
A type requirement that names a class template specialization
1690+
A type requirement that names a class template specialization
16911691
does not require that type to be complete~(\ref{basic.types}).
16921692

16931693
\rSec3[expr.prim.req.compound]{Compound requirements}
16941694
\indextext{requirement!compound}%
1695-
1695+
16961696
\begin{bnf}
16971697
\nontermdef{compound-requirement}\br
16981698
\terminal{\{} expression \terminal{\}} \terminal{noexcept}\opt{} return-type-requirement\opt{} \terminal{;}
@@ -1723,7 +1723,7 @@
17231723
\item Substitution of template arguments (if any)
17241724
into the \grammarterm{return-type-requirement} is performed.
17251725

1726-
\item If the \grammarterm{return-type-requirement} is a
1726+
\item If the \grammarterm{return-type-requirement} is a
17271727
\grammarterm{trailing-return-type},
17281728
%%% FIXME: is -> shall be
17291729
\tcode{E} is implicitly convertible to
@@ -1738,7 +1738,7 @@
17381738
using the rules in \ref{temp.deduct.call}.
17391739
\tcode{F} is a \tcode{void} function template
17401740
with a single type template parameter \tcode{T}
1741-
declared with the \grammarterm{constrained-parameter}.
1741+
declared with the \grammarterm{constrained-parameter}.
17421742
A \grammarterm{cv-qualifier-seq} \cv{} is formed
17431743
as the union of \tcode{const} and \tcode{volatile} specifiers
17441744
around the \grammarterm{constrained-parameter}.
@@ -1758,7 +1758,7 @@
17581758
{x++};
17591759
};
17601760
\end{codeblock}
1761-
The \grammarterm{compound-requirement} in \tcode{C1}
1761+
The \grammarterm{compound-requirement} in \tcode{C1}
17621762
requires that \tcode{x++} is a valid expression.
17631763
It is equivalent to a \grammarterm{simple-requirement}
17641764
with the same \grammarterm{expression}.
@@ -1769,7 +1769,7 @@
17691769
};
17701770
\end{codeblock}
17711771

1772-
The \grammarterm{compound-requirement} in \tcode{C2}
1772+
The \grammarterm{compound-requirement} in \tcode{C2}
17731773
requires that \tcode{*x} is a valid expression,
17741774
that \tcode{typename T::inner} is a valid type, and
17751775
that \tcode{*x} is implicitly convertible to
@@ -1801,7 +1801,7 @@
18011801
};
18021802
\end{codeblock}
18031803

1804-
The \grammarterm{compound-requirement} in \tcode{C5}
1804+
The \grammarterm{compound-requirement} in \tcode{C5}
18051805
requires that \tcode{g(x)} is a valid expression and
18061806
that \tcode{g(x)} is non-throwing.
18071807
\end{example}
@@ -1835,7 +1835,7 @@
18351835
\end{example}
18361836

18371837
\pnum
1838-
A local parameter shall only appear as an unevaluated operand
1838+
A local parameter shall only appear as an unevaluated operand
18391839
(Clause~\ref{expr}) within the \grammarterm{constraint-expression}.
18401840
\begin{example}
18411841
\begin{codeblock}

source/overloading.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@
15541554
\end{itemize}
15551555

15561556
\pnum
1557-
Second, for a function to be viable, if it has associated constraints,
1557+
Second, for a function to be viable, if it has associated constraints,
15581558
those constraints shall be satisfied (\ref{temp.constr.decl}).
15591559

15601560
\pnum
@@ -1691,9 +1691,9 @@
16911691
or, if not that,
16921692

16931693
\item
1694-
\tcode{F1} and \tcode{F2} are non-template functions with the same
1695-
parameter-type-lists, and \tcode{F1} is more constrained than \tcode{F2}
1696-
according to the partial ordering of constraints described in
1694+
\tcode{F1} and \tcode{F2} are non-template functions with the same
1695+
parameter-type-lists, and \tcode{F1} is more constrained than \tcode{F2}
1696+
according to the partial ordering of constraints described in
16971697
\ref{temp.constr.order}, or if not that,
16981698

16991699
\item
@@ -2883,7 +2883,7 @@
28832883
All functions whose
28842884
associated constraints are not satisfied~(\ref{temp.constr.decl})
28852885
are eliminated from the set of selected functions.
2886-
If more than one function in the set remains,
2886+
If more than one function in the set remains,
28872887
all function template specializations
28882888
in the set
28892889
are eliminated if the set also contains a function that is not a
@@ -2892,7 +2892,7 @@
28922892
\tcode{F0}
28932893
is eliminated if the set contains a second
28942894
non-template function that
2895-
is more constrained than
2895+
is more constrained than
28962896
\tcode{F0}
28972897
according to
28982898
the partial ordering rules of \ref{temp.constr.order}.

source/special.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,11 @@
545545
a class member access~(\ref{expr.ref}) using the \tcode{.} operator
546546
where the left operand is one of these expressions and
547547
the right operand designates a non-static data member of non-reference type,
548-
\item
548+
\item
549549
a pointer-to-member operation~(\ref{expr.mptr.oper}) using the \tcode{.*} operator
550550
where the left operand is one of these expressions and
551551
the right operand is a pointer to data member of non-reference type,
552-
\item
552+
\item
553553
a \tcode{const_cast}~(\ref{expr.const.cast}),
554554
\tcode{static_cast}~(\ref{expr.static.cast}),
555555
\tcode{dynamic_cast}~(\ref{expr.dynamic.cast}), or
@@ -559,10 +559,10 @@
559559
to a glvalue that refers
560560
to the object designated by the operand, or
561561
to its complete object or a subobject thereof,
562-
\item
562+
\item
563563
a conditional expression~(\ref{expr.cond}) that is a glvalue
564564
where the second or third operand is one of these expressions, or
565-
\item
565+
\item
566566
a comma expression~(\ref{expr.comma}) that is a glvalue
567567
where the right operand is one of these expressions.
568568
\end{itemize}

0 commit comments

Comments
 (0)