]> granicus.if.org Git - clang/commit
fix some minor error recovery bugs in ParseObjCInterfaceDeclList
authorChris Lattner <sabre@nondot.org>
Mon, 20 Oct 2008 05:57:40 +0000 (05:57 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Oct 2008 05:57:40 +0000 (05:57 +0000)
commita2449b2bf739545494241e189b59587d5ca5c2c1
treef298faae7d139e773880ad730f087278ae3e47b0
parente82a10fbba9e33b253119c7c1e0a9801caef486d
fix some minor error recovery bugs in ParseObjCInterfaceDeclList
where it would reject @required in non-protocols, but then go
ahead and tag methods with required anyway.  Instead, if we see
this in something other than a protocol, just ignore the request.

Also, improve error recovery a bit when we see something bogus
inside an interface.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseObjc.cpp