Author: lattner
Date: Sun Oct 19 19:25:30 2008
New Revision: 57787

URL: http://llvm.org/viewvc/llvm-project?rev=57787&view=rev
Log:
Remove an implemented fixme, only treat < as a type specifier
when ObjC is turned on.

Modified:
    cfe/trunk/lib/Parse/ParseDecl.cpp

Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=57787&r1=57786&r2=57787&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Sun Oct 19 19:25:30 2008
@@ -277,7 +277,6 @@
       D.AddAttributes(ParseAttributes());
 
     // Inform the current actions module that we just parsed this declarator.
-    // FIXME: pass asm & attributes.
     LastDeclInGroup = Actions.ActOnDeclarator(CurScope, D, LastDeclInGroup);
         
     // Parse declarator '=' initializer.
@@ -952,8 +951,6 @@
   case tok::kw___attribute:
     // GNU typeof support.
   case tok::kw_typeof:
-    // GNU bizarre protocol extension. FIXME: make an extension?
-  case tok::less:
   
     // type-specifiers
   case tok::kw_short:
@@ -986,6 +983,10 @@
   case tok::kw_volatile:
   case tok::kw_restrict:
     return true;
+      
+    // GNU ObjC bizarre protocol extension: <proto1,proto2> with implicit 'id'.
+  case tok::less:
+    return getLang().ObjC1;
     
     // typedef-name
   case tok::identifier:


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to