diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-09 16:40:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-09 16:40:21 +0000 |
commit | d6c7c182853531a6423e7dd542e47a38680bfba0 (patch) | |
tree | 6385c0379c08854ba9f2380991cd1eb45c01b664 /Parse/ParseDecl.cpp | |
parent | a0df31ac1f09a3cf2f08c5c3a134376640dc7893 (diff) |
__attribute__ starts a declspec.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseDecl.cpp')
-rw-r--r-- | Parse/ParseDecl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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. } } |