diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-25 04:46:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-25 04:46:04 +0000 |
commit | edc90500b1d2587bf0b698fada14537d6741fddf (patch) | |
tree | eec1022df7b9f1f89646a4a8da186aa978e42c77 /include/clang/Parse/Action.h | |
parent | b954e98893505d401acddac42650a81b83d8dc39 (diff) |
Restore the invariant that a nested-name-specifier can only contain
class types, dependent types, and namespaces. I had previously
weakened this invariant while working on parsing pseudo-destructor
expressions, but recent work in that area has made these changes
unnecessary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Action.h')
-rw-r--r-- | include/clang/Parse/Action.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index e4a9512414..469816caa5 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -365,11 +365,6 @@ public: /// \param II the identifier that represents the scope that this /// nested-name-specifier refers to, e.g., the "bar" in "foo::bar::". /// - /// \param MayBePseudoDestructor Whether this nested-name-specifier - /// may be part of a pseudo-destructor, meaning that we are in a - /// member access expression (such as p->T::~T()) and a '~' follows - /// the '::'. - /// /// \param ObjectType if this nested-name-specifier occurs as part of a /// C++ member access expression such as "x->Base::f", the type of the base /// object (e.g., *x in the example, if "x" were a pointer). @@ -384,7 +379,6 @@ public: SourceLocation IdLoc, SourceLocation CCLoc, IdentifierInfo &II, - bool MayBePseudoDestructor, TypeTy *ObjectType, bool EnteringContext) { return 0; @@ -399,7 +393,6 @@ public: virtual bool IsInvalidUnlessNestedName(Scope *S, const CXXScopeSpec &SS, IdentifierInfo &II, - bool MayBePseudoDestructor, TypeTy *ObjectType, bool EnteringContext) { return false; @@ -417,8 +410,7 @@ public: const CXXScopeSpec &SS, TypeTy *Type, SourceRange TypeRange, - SourceLocation CCLoc, - bool MayBePseudoDestructor) { + SourceLocation CCLoc) { return 0; } |