diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-09-15 14:54:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-09-15 14:54:45 +0000 |
commit | b65042da3aa4dc2f9fc1c606fa6817089fd86cd6 (patch) | |
tree | a1339d35b42c871f5124617900c5c4cd7545d079 /lib/Parse/ParseExpr.cpp | |
parent | 0fbda68b50ce17d7ad36ef7a5ed77518a5cd272e (diff) |
Extend bracket insertion to handle nullary selectors, e.g.
a getFoo]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 1f5a6964e3..e466af2d61 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -984,7 +984,7 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) { // message send, then this is probably a message send with a missing // opening bracket '['. if (getLang().ObjC1 && !InMessageExpression && - NextToken().is(tok::colon)) { + (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { LHS = ParseObjCMessageExpressionBody(SourceLocation(), SourceLocation(), ParsedType(), LHS.get()); break; |