Teach tentative parsing to handle block pointers (rdar://6394309)
llvm-svn: 59853
This commit is contained in:
parent
afd8aa9d73
commit
399f9656ba
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue