]> granicus.if.org Git - clang/commit
Fix parsing nested __if_exists blocks
authorReid Kleckner <reid@kleckner.net>
Wed, 25 Jun 2014 00:28:35 +0000 (00:28 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 25 Jun 2014 00:28:35 +0000 (00:28 +0000)
commite15c5bb0df8f1d7f9a1f4887c893e8517a0465ea
treed1a99185f73229e82fd79c54d233a06d7786b38f
parent450955db5aa414877c6c966660b41472ffd60b52
Fix parsing nested __if_exists blocks

Rather than having kw___if_exists be a special case of
ParseCompoundStatementBody, we can look for kw___if_exists in the big
switch over for valid statement tokens in ParseStatementOrDeclaration.

Nested __if_exists blocks are used in the DECLARE_REGISTRY_RESOURCEID
macro from atlcom.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmt.cpp
test/Parser/ms-if-exists.cpp