From d6c7c182853531a6423e7dd542e47a38680bfba0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 9 Aug 2007 16:40:21 +0000 Subject: [PATCH] __attribute__ starts a declspec. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40962 91177308-0d34-0410-b5e6-96231b3b80d8 --- Parse/ParseDecl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. } } -- 2.50.1