]> granicus.if.org Git - clang/commitdiff
< only starts a declspec in objc mode.
authorChris Lattner <sabre@nondot.org>
Sat, 26 Jul 2008 03:38:44 +0000 (03:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 26 Jul 2008 03:38:44 +0000 (03:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54089 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index 51230fc88f09d505434456e8eb5ee4cbaab767db..e7b73cf619751b04141adb795b1b82deec820065 100644 (file)
@@ -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: <proto1,proto2> with implicit 'id'.
   case tok::less:
-    return true;
+    return getLang().ObjC1;
     
     // typedef-name
   case tok::identifier: