]> granicus.if.org Git - clang/commit
[ObjC] Avoid a @try/@finally/@autoreleasepool fixit when parsing an expression
authorAlex Lorenz <arphaman@gmail.com>
Thu, 1 Dec 2016 12:14:38 +0000 (12:14 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 1 Dec 2016 12:14:38 +0000 (12:14 +0000)
commit0eded94a1d7021f0d31fc7b068fe51e6714b6095
tree62774b9f6229f553a282133c54b77dd9bd69b0cc
parent596a7b34925b71f4c239138af68d6a5a04b8ec6e
[ObjC] Avoid a @try/@finally/@autoreleasepool fixit when parsing an expression

This patch ensures that the typo fixit for the @try/@finally/@autoreleasepool {}
directive is shown only when we're parsing an actual statement where such
directives can actually be present.

rdar://19669565

Differential Revision: https://reviews.llvm.org/D26916

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288334 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseObjc.cpp
test/Parser/objc-at-directive-fixit.m [new file with mode: 0644]