]> granicus.if.org Git - clang/commit
Add support for Microsoft __if_exists, __if_not_exists extension at class scope.
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 25 May 2011 10:19:49 +0000 (10:19 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 25 May 2011 10:19:49 +0000 (10:19 +0000)
commit563a645de82231a55e221fe655b7188bf8369662
tree54d18fbde16c35c24aed5402131ab09238c6d721
parentd1e015eb441910937c74d489970322a3a3491a67
Add support for Microsoft __if_exists, __if_not_exists extension at class scope.

Example:

typedef int TYPE;
class C {
  __if_exists(TYPE) {
     TYPE a;
  }
  __if_not_exists(TYPE) {
     this will never be parsed.
  }
};

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132052 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDeclCXX.cpp
lib/Parse/Parser.cpp
test/Parser/MicrosoftExtensions.cpp