diff options
author | Francois Pichet <pichet2000@gmail.com> | 2010-10-11 12:59:39 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2010-10-11 12:59:39 +0000 |
commit | 334d47e92e9f241576fdeb7477b69a03136ba854 (patch) | |
tree | 76d1eff598d39f89054b7ca6fd842e6dc6aea6b2 /lib/Parse/ParseDecl.cpp | |
parent | b2419466892e5445fec6ce30f97784ae8b99f134 (diff) |
Add parsing support for Microsoft attributes. MS attributes will just be skipped and not inserted into the AST for now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 3d29e9e702..e4c7569b61 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/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(); |