]> granicus.if.org Git - clang/commitdiff
Use the MaybeParseMicrosoftAttributes function.
authorChad Rosier <mcrosier@apple.com>
Thu, 20 Dec 2012 20:37:53 +0000 (20:37 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 20 Dec 2012 20:37:53 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170761 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index 390fd34536eda9aad2bc42a31a6c67851c63ff2c..23a6037bbb1ef9d81e3fbe4f4c3296e472892e98 100644 (file)
@@ -4952,8 +4952,7 @@ void Parser::ParseParameterDeclarationClause(
     MaybeParseCXX0XAttributes(DS.getAttributes());
 
     // Skip any Microsoft attributes before a param.
-    if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
-      ParseMicrosoftAttributes(DS.getAttributes());
+    MaybeParseMicrosoftAttributes(DS.getAttributes());
 
     SourceLocation DSStart = Tok.getLocation();