diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-05-25 10:19:49 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-05-25 10:19:49 +0000 |
commit | 563a645de82231a55e221fe655b7188bf8369662 (patch) | |
tree | 54d18fbde16c35c24aed5402131ab09238c6d721 /lib/Parse/Parser.cpp | |
parent | d1e015eb441910937c74d489970322a3a3491a67 (diff) |
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
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index a706f439a1..f209723dc0 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -656,7 +656,7 @@ Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs, case tok::kw___if_exists: case tok::kw___if_not_exists: - ParseMicrosoftIfExistsDeclaration(); + ParseMicrosoftIfExistsExternalDeclaration(); return DeclGroupPtrTy(); default: @@ -1474,7 +1474,7 @@ bool Parser::ParseMicrosoftIfExistsCondition(bool& Result) { return false; } -void Parser::ParseMicrosoftIfExistsDeclaration() { +void Parser::ParseMicrosoftIfExistsExternalDeclaration() { bool Result; if (ParseMicrosoftIfExistsCondition(Result)) return; |