summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.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/ParseDecl.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/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 3d29e9e702e..e4c7569b61d 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -3182,6 +3182,10 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D,
EllipsisLoc = ConsumeToken(); // Consume the ellipsis.
break;
}
+
+ // Skip any Microsoft attributes before a param.
+ if (getLang().Microsoft && Tok.is(tok::l_square))
+ ParseMicrosoftAttributes();
SourceLocation DSStart = Tok.getLocation();
OpenPOWER on IntegriCloud