diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-26 16:50:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-26 16:50:54 +0000 |
commit | e3c7a7ca66c02567543dbb5ec493818e00e8b177 (patch) | |
tree | 29adad11206889845f4a3b0766b88d066fd403f1 /lib/Parse/ParseTentative.cpp | |
parent | 6b4df91dc4ed4a3fc78587c49a3ed3df96b65d9c (diff) |
Rvalue references for *this: tentative parsing and template argument deduction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseTentative.cpp')
-rw-r--r-- | lib/Parse/ParseTentative.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Parse/ParseTentative.cpp b/lib/Parse/ParseTentative.cpp index 523054b2d8..35d72547cd 100644 --- a/lib/Parse/ParseTentative.cpp +++ b/lib/Parse/ParseTentative.cpp @@ -1222,6 +1222,10 @@ Parser::TPResult Parser::TryParseFunctionDeclarator() { Tok.is(tok::kw_restrict) ) ConsumeToken(); + // ref-qualifier[opt] + if (Tok.is(tok::amp) || Tok.is(tok::ampamp)) + ConsumeToken(); + // exception-specification if (Tok.is(tok::kw_throw)) { ConsumeToken(); |