From: Chris Lattner Date: Thu, 9 Aug 2007 16:40:21 +0000 (+0000) Subject: __attribute__ starts a declspec. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6c7c182853531a6423e7dd542e47a38680bfba0;p=clang __attribute__ starts a declspec. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40962 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Parse/ParseDecl.cpp b/Parse/ParseDecl.cpp index 0e27c607c9..a96211df7d 100644 --- a/Parse/ParseDecl.cpp +++ b/Parse/ParseDecl.cpp @@ -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. } }