]> granicus.if.org Git - clang/commit
Add support for Microsoft __if_exists and __if_not_exists construct inside function...
authorFrancois Pichet <pichet2000@gmail.com>
Fri, 6 May 2011 20:48:22 +0000 (20:48 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Fri, 6 May 2011 20:48:22 +0000 (20:48 +0000)
commit1e862693c63067ae467b0b3884c44f753cd6e821
treeb01109f3320aecb8c954f021bb053428396a0a80
parent10620eb5164e31208fcbf0437cd79ae535ed0559
Add support for Microsoft __if_exists and __if_not_exists construct inside function definition.
Allow to include or exclude code depending on if a symbol exists or not. Just like a #ifdef but for C/C++ symbols.

More doc: http://msdn.microsoft.com/en-us/library/x7wy9xh3(v=VS.100).aspx

Support at class and namespace scopes will be added later.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131014 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TokenKinds.def
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseStmt.cpp
lib/Sema/SemaExprCXX.cpp
test/Parser/MicrosoftExtensions.cpp