From: Chad Rosier Date: Thu, 20 Dec 2012 20:37:53 +0000 (+0000) Subject: Use the MaybeParseMicrosoftAttributes function. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16f90bfe53ed637156c315cbbeddcf2d91266d67;p=clang Use the MaybeParseMicrosoftAttributes function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 390fd34536..23a6037bbb 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -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();