From: Chris Lattner Date: Sat, 26 Jul 2008 03:38:44 +0000 (+0000) Subject: < only starts a declspec in objc mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3948c41ca339da6b8dfd6006b68e5e305a8cee1;p=clang < only starts a declspec in objc mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54089 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 51230fc88f..e7b73cf619 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -1024,10 +1024,11 @@ bool Parser::isDeclarationSpecifier() const { // GNU attributes. case tok::kw___attribute: + return true; - // GNU bizarre protocol extension. FIXME: make an extension? + // GNU ObjC bizarre protocol extension: with implicit 'id'. case tok::less: - return true; + return getLang().ObjC1; // typedef-name case tok::identifier: