summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-10-11 12:59:39 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-10-11 12:59:39 +0000
commitc2bc5ac1494c9160593ccbfe512a0bc3b1eb7888 (patch)
treedc564a750d0d77669ec23e375d868df8285023a3 /clang/lib/Parse/Parser.cpp
parentd61f192b1ad0530c671f6036742ab0291475c69c (diff)
downloadbcm5719-llvm-c2bc5ac1494c9160593ccbfe512a0bc3b1eb7888.tar.gz
bcm5719-llvm-c2bc5ac1494c9160593ccbfe512a0bc3b1eb7888.zip
Add parsing support for Microsoft attributes. MS attributes will just be skipped and not inserted into the AST for now.
llvm-svn: 116203
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 8084088afca..13c25f478db 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -406,6 +406,9 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) {
CXX0XAttributeList Attr;
if (getLang().CPlusPlus0x && isCXX0XAttributeSpecifier())
Attr = ParseCXX0XAttributes();
+ if (getLang().Microsoft && Tok.is(tok::l_square))
+ ParseMicrosoftAttributes();
+
Result = ParseExternalDeclaration(Attr);
return false;
}
OpenPOWER on IntegriCloud