__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 0e27c60..a96211d 100644
--- a/Parse/ParseDecl.cpp
+++ b/Parse/ParseDecl.cpp
@@ -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.
}
}