diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-06-24 17:47:40 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-06-24 17:47:40 +0000 |
| commit | 74948d070112d3baa1aa5857dbc8ac15b62f8cc8 (patch) | |
| tree | 746acf1ff7fffffb53659541b02304eb2c330284 /clang/lib/Parse/ParseTentative.cpp | |
| parent | 4d9e93c4207a987bcf68698b55a8094021fe78fd (diff) | |
| download | bcm5719-llvm-74948d070112d3baa1aa5857dbc8ac15b62f8cc8.tar.gz bcm5719-llvm-74948d070112d3baa1aa5857dbc8ac15b62f8cc8.zip | |
Parse the C++0x decltype specifier.
llvm-svn: 74086
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseTentative.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index f31855b751f..02687a216c7 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -543,6 +543,7 @@ Parser::TPResult Parser::TryParseDeclarator(bool mayBeAbstract, /// [GNU] typeof-specifier /// [GNU] '_Complex' /// [C++0x] 'auto' [TODO] +/// [C++0x] 'decltype' ( expression ) /// /// type-name: /// class-name @@ -695,7 +696,7 @@ Parser::TPResult Parser::isCXXDeclarationSpecifier() { return TPResult::True(); - // GNU typeof support. + // GNU typeof support. case tok::kw_typeof: { if (NextToken().isNot(tok::l_paren)) return TPResult::True(); @@ -716,6 +717,10 @@ Parser::TPResult Parser::isCXXDeclarationSpecifier() { return TPResult::True(); } + // C++0x decltype support. + case tok::kw_decltype: + return TPResult::True(); + default: return TPResult::False(); } |

