[cfe-commits] r40962 - /cfe/trunk/Parse/ParseDecl.cpp

Chris Lattner sabre at nondot.org
Thu Aug 9 09:40:22 PDT 2007


Author: lattner
Date: Thu Aug  9 11:40:21 2007
New Revision: 40962

URL: http://llvm.org/viewvc/llvm-project?rev=40962&view=rev
Log:
__attribute__ starts a declspec.

Modified:
    cfe/trunk/Parse/ParseDecl.cpp

Modified: cfe/trunk/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Parse/ParseDecl.cpp?rev=40962&r1=40961&r2=40962&view=diff

==============================================================================
--- cfe/trunk/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/Parse/ParseDecl.cpp Thu Aug  9 11:40:21 2007
@@ -916,12 +916,14 @@
     
     // function-specifier
   case tok::kw_inline:
+
+    // attributes.
+  case tok::kw___attribute:
     return true;
     
     // typedef-name
   case tok::identifier:
     return Actions.isTypeName(*Tok.getIdentifierInfo(), CurScope) != 0;
-    // TODO: Attributes.
   }
 }
 





More information about the cfe-commits mailing list