From a4f34eaab2c8b32582af339279d5dc9ba648174c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 22 Nov 2008 01:15:33 +0000 Subject: [PATCH] Teach tentative parsing to handle block pointers (rdar://6394309) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59853 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Parse/ParseTentative.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Parse/ParseTentative.cpp b/lib/Parse/ParseTentative.cpp index ccaae6d3b2..3c50884c9c 100644 --- a/lib/Parse/ParseTentative.cpp +++ b/lib/Parse/ParseTentative.cpp @@ -399,7 +399,8 @@ Parser::TPResult Parser::TryParseDeclarator(bool mayBeAbstract, // ptr-operator declarator while (1) { - if (Tok.is(tok::star) || Tok.is(tok::amp)) { + if (Tok.is(tok::star) || Tok.is(tok::amp) || + (Tok.is(tok::caret) && getLang().Blocks)) { // ptr-operator ConsumeToken(); while (Tok.is(tok::kw_const) || -- 2.40.0