From f3948c41ca339da6b8dfd6006b68e5e305a8cee1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jul 2008 03:38:44 +0000 Subject: [PATCH] < only starts a declspec in objc mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54089 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Parse/ParseDecl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.50.1