[cfe-commits] r170761 - /cfe/trunk/lib/Parse/ParseDecl.cpp

Chad Rosier mcrosier at apple.com
Thu Dec 20 12:37:53 PST 2012


Author: mcrosier
Date: Thu Dec 20 14:37:53 2012
New Revision: 170761

URL: http://llvm.org/viewvc/llvm-project?rev=170761&view=rev
Log:
Use the MaybeParseMicrosoftAttributes function.

Modified:
    cfe/trunk/lib/Parse/ParseDecl.cpp

Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=170761&r1=170760&r2=170761&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Thu Dec 20 14:37:53 2012
@@ -4952,8 +4952,7 @@
     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();
 





More information about the cfe-commits mailing list