]> granicus.if.org Git - clang/commitdiff
__attribute__ starts a declspec.
authorChris Lattner <sabre@nondot.org>
Thu, 9 Aug 2007 16:40:21 +0000 (16:40 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 9 Aug 2007 16:40:21 +0000 (16:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40962 91177308-0d34-0410-b5e6-96231b3b80d8

Parse/ParseDecl.cpp

index 0e27c607c91a686f4fae9150dd9330565894335a..a96211df7d20b223c424c5bbc656183a2ff5adab 100644 (file)
@@ -916,12 +916,14 @@ bool Parser::isDeclarationSpecifier() const {
     
     // 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.
   }
 }