diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-12-04 05:04:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-12-04 05:04:18 +0000 |
commit | 42d6d0c91ab089cb252ab2f91c16d4557f458a2c (patch) | |
tree | 798a87db00244b0536a6b3880eb6c040218aa70d /lib/Parse/ParseTentative.cpp | |
parent | 649657e7d6c150136cae5ab22e39b9794cff80cc (diff) |
Support decltype in nested-name-specifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseTentative.cpp')
-rw-r--r-- | lib/Parse/ParseTentative.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Parse/ParseTentative.cpp b/lib/Parse/ParseTentative.cpp index e682cb4218..7c280ff50b 100644 --- a/lib/Parse/ParseTentative.cpp +++ b/lib/Parse/ParseTentative.cpp @@ -706,7 +706,6 @@ Parser::isExpressionOrTypeSpecifierSimple(tok::TokenKind Kind) { case tok::kw_wchar_t: case tok::kw_char16_t: case tok::kw_char32_t: - case tok::kw_decltype: case tok::kw___underlying_type: case tok::kw_thread_local: case tok::kw__Decimal32: @@ -848,13 +847,14 @@ Parser::TPResult Parser::isCXXDeclarationSpecifier() { if (Next.is(tok::kw_new) || // ::new Next.is(tok::kw_delete)) // ::delete return TPResult::False(); - + } + // Fall through. + case tok::kw_decltype: // Annotate typenames and C++ scope specifiers. If we get one, just // recurse to handle whatever we get. if (TryAnnotateTypeOrScopeToken()) return TPResult::Error(); return isCXXDeclarationSpecifier(); - } // decl-specifier: // storage-class-specifier @@ -1030,7 +1030,7 @@ Parser::TPResult Parser::isCXXDeclarationSpecifier() { } // C++0x decltype support. - case tok::kw_decltype: + case tok::annot_decltype: return TPResult::True(); // C++0x type traits support |