]> granicus.if.org Git - clang/commit
[parser] If there are unmatched braces in a function definition, try to
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 24 Mar 2012 02:26:51 +0000 (02:26 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 24 Mar 2012 02:26:51 +0000 (02:26 +0000)
commit5d5ed59f1ee57ad2639f0ef1fb400f8854480bb0
tree98582d9d9afa3261b73a45ad408e2e582724e9d9
parente27af29401da15cc2e9a92825cb24adb1aef7091
[parser] If there are unmatched braces in a function definition, try to
recover by returning the statements that we parsed so far, instead of
dropping the whole function body.

rdar://10967343

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153367 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmt.cpp
test/Index/unmatched-braces.c [new file with mode: 0644]
test/Index/unmatched-braces.m [new file with mode: 0644]