Skip to content

Commit 4764fc9

Browse files
Eelistkoeppe
authored andcommitted
Remove \tilde in favour of \~. (#1851)
1 parent 9dbbf9c commit 4764fc9

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

source/basic.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@
17751775
\grammarterm{qualified-id} of the form:
17761776

17771777
\begin{ncbnf}
1778-
nested-name-specifier\opt{} class-name \terminal{::} \terminal{\tilde} class-name
1778+
nested-name-specifier\opt{} class-name \terminal{::} \terminal{\~} class-name
17791779
\end{ncbnf}
17801780

17811781
the second \grammarterm{class-name} is looked up in the same scope as the

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@
14421442
-> void;
14431443
auto g() -> void {
14441444
f(42); // OK: calls \#2. (\#1 is not a viable candidate: type deduction
1445-
// fails\iref{temp.deduct} because \tcode{A<int>::\tilde{}A()} is implicitly used in its
1445+
// fails\iref{temp.deduct} because \tcode{A<int>::\~{}A()} is implicitly used in its
14461446
// \grammarterm{decltype-specifier})
14471447
}
14481448
template<class T> auto q(T)

source/expressions.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,8 @@
671671
operator-function-id\br
672672
conversion-function-id\br
673673
literal-operator-id\br
674-
\terminal{\tilde} class-name\br
675-
\terminal{\tilde} decltype-specifier\br
674+
\terminal{\~} class-name\br
675+
\terminal{\~} decltype-specifier\br
676676
template-id
677677
\end{bnf}
678678

@@ -686,7 +686,7 @@
686686
\grammarterm{literal-operator-id}{s}, see~\ref{over.literal}; for
687687
\grammarterm{template-id}{s}, see~\ref{temp.names}. A \grammarterm{class-name}
688688
or \grammarterm{decltype-specifier}
689-
prefixed by \tcode{\tilde} denotes a destructor; see~\ref{class.dtor}.
689+
prefixed by \tcode{\~} denotes a destructor; see~\ref{class.dtor}.
690690
Within the definition of a non-static member function, an
691691
\grammarterm{identifier} that names a non-static member is transformed to a
692692
class member access expression~(\ref{class.mfct.non-static}).
@@ -777,10 +777,10 @@
777777
point in its potential scope\iref{basic.scope.class}.
778778
\end{note}
779779
Where
780-
\grammarterm{class-name} \tcode{::\tilde}~\grammarterm{class-name} is used,
780+
\grammarterm{class-name} \tcode{::\~}~\grammarterm{class-name} is used,
781781
the two \grammarterm{class-name}{s} shall refer to the same class; this
782782
notation names the destructor\iref{class.dtor}.
783-
The form \tcode{\tilde}~\grammarterm{decltype-specifier} also denotes the destructor,
783+
The form \tcode{\~}~\grammarterm{decltype-specifier} also denotes the destructor,
784784
but it shall not be used as the \grammarterm{unqualified-id} in a \grammarterm{qualified-id}.
785785
\begin{note}
786786
A \grammarterm{typedef-name} that names a class is a
@@ -2107,10 +2107,10 @@
21072107

21082108
\begin{bnf}
21092109
\nontermdef{pseudo-destructor-name}\br
2110-
nested-name-specifier\opt{} type-name \terminal{::\,\tilde} type-name\br
2111-
nested-name-specifier \terminal{template} simple-template-id \terminal{::\,\tilde} type-name\br
2112-
\terminal{\tilde} type-name\br
2113-
\terminal{\tilde} decltype-specifier
2110+
nested-name-specifier\opt{} type-name \terminal{::\,\~} type-name\br
2111+
nested-name-specifier \terminal{template} simple-template-id \terminal{::\,\~} type-name\br
2112+
\terminal{\~} type-name\br
2113+
\terminal{\~} decltype-specifier
21142114
\end{bnf}
21152115

21162116
\pnum
@@ -2444,7 +2444,7 @@
24442444
the form
24452445

24462446
\begin{ncbnf}
2447-
nested-name-specifier\opt{} type-name \terminal{::\,\tilde} type-name
2447+
nested-name-specifier\opt{} type-name \terminal{::\,\~} type-name
24482448
\end{ncbnf}
24492449

24502450
shall designate the same scalar type (ignoring cv-qualification).
@@ -3385,13 +3385,13 @@
33853385
\indextext{operator!logical negation}%
33863386
\indextext{\idxcode{"!}|see{operator, logical negation}}%
33873387
\indextext{operator!ones' complement}%
3388-
\indextext{~@\tcode{\tilde}|see{operator, ones' complement}}%
3388+
\indextext{~@\tcode{\~}|see{operator, ones' complement}}%
33893389
\indextext{operator!increment}%
33903390
\indextext{operator!decrement}%
33913391
%
33923392
\begin{bnf}
33933393
\nontermdef{unary-operator} \textnormal{one of}\br
3394-
\terminal{* \& + - ! \tilde}
3394+
\terminal{* \& + - ! \~}
33953395
\end{bnf}
33963396

33973397
\rSec3[expr.unary.op]{Unary operators}

source/lex.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@
796796
\nontermdef{preprocessing-op-or-punc} \textnormal{one of}\br
797797
\>\{ \>\} \>[ \>] \>\# \>\#\# \>( \>)\br
798798
\><: \>:> \><\% \>\%> \>\%: \>\%:\%: \>; \>: \>.{..}\br
799-
\>new \>delete \>? \>:: \>. \>.* \>-> \>->* \>\tilde\br
799+
\>new \>delete \>? \>:: \>. \>.* \>-> \>->* \>\~\br
800800
\>! \>+ \>- \>* \>/ \>\% \>\caret \>\& \>|\br
801801
\>= \>+= \>-= \>*= \>/= \>\%= \>\caret= \>\&= \>|=\br
802802
\>== \>!= \>< \>> \><= \>>= \><=> \>\&\& \>||\br

source/macros.tex

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@
199199
\newcommand{\bigoh}[1]{\ensuremath{\mathscr{O}(#1)}}
200200

201201
% Make all tildes a little larger to avoid visual similarity with hyphens.
202-
% FIXME: Remove \tilde in favour of \~.
203-
\renewcommand{\tilde}{\textasciitilde}
204202
\renewcommand{\~}{\textasciitilde}
205203
\let\OldTextAsciiTilde\textasciitilde
206204
\renewcommand{\textasciitilde}{\protect\raisebox{-0.17ex}{\larger\OldTextAsciiTilde}}

source/special.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
\gramSec[gram.special]{Special member functions}
55

66
\indextext{\idxcode{X(X\&)}|see{constructor, copy}}%
7-
\indextext{~@\tcode{\tilde}|see{destructor}}%
7+
\indextext{~@\tcode{\~}|see{destructor}}%
88
\indextext{assignment!copy|see{assignment operator, copy}}%
99
\indextext{assignment!move|see{assignment operator, move}}%
1010
\indextext{implicitly-declared default constructor|see{constructor, default}}

0 commit comments

Comments
 (0)