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)
commit6d8d22ae404cc857782c422e1f53c7d4a3d9311f
tree862a9cb7845ce4b8109f22f7d7df4f9bb62c91a7
parent624ac24da95211b7883362acbce37594aeccc3b7
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.

llvm-svn: 211654
clang/lib/Parse/ParseStmt.cpp
clang/test/Parser/ms-if-exists.cpp