diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-31 14:40:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-31 14:40:22 +0000 |
commit | 1b730e847ded503f2e615154035c083c4f94a067 (patch) | |
tree | 38ee34eea94d38a2daac2313e5765ec17290a824 /lib/Sema/SemaCodeComplete.cpp | |
parent | 5b013df7d194ddaf030177387789c3c8248852b2 (diff) |
When we see the a '[' in a postfix expression in Objective-C, perform
a simple, quick check to determine whether the expression starting
with '[' can only be an Objective-C message send. If so, don't parse
it as an array subscript expression. This improves recovery for, e.g.,
[a method1]
[a method2]
so that we now produce
t.m:10:13: error: expected ';' after expression
[a method]
^
instead of some mess about expecting ']'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions