diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-24 18:44:31 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-24 18:44:31 +0000 |
commit | d4dca08d6b7ed2e3e3718caa6fd735960b135e9a (patch) | |
tree | 727039d6619e433a1997dc3907b3dbfafaa72793 /test/ASTMerge/Inputs/namespace2.cpp | |
parent | 5edcc3752563ae0ed5b26f8c89a472ac84af9cf7 (diff) |
Rework parsing of pseudo-destructor expressions and explicit
destructor calls, e.g.,
p->T::~T
We now detect when the member access that we've parsed, e.g.,
p-> or x.
may be a pseudo-destructor expression, either because the type of p or
x is a scalar or because it is dependent (and, therefore, may become a
scalar at template instantiation time).
We then parse the pseudo-destructor grammar specifically:
::[opt] nested-name-specifier[opt] type-name :: ∼ type-name
and hand those results to a new action, ActOnPseudoDestructorExpr,
which will cope with both dependent member accesses of destructors and
with pseudo-destructor expressions.
This commit affects the parsing of pseudo-destructors, only; the
semantic actions still go through the semantic actions for member
access expressions. That will change soon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/Inputs/namespace2.cpp')
0 files changed, 0 insertions, 0 deletions