Author: lattner
Date: Fri Jul 25 22:38:44 2008
New Revision: 54089

URL: http://llvm.org/viewvc/llvm-project?rev=54089&view=rev
Log:
< only starts a declspec in objc mode.

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=54089&r1=54088&r2=54089&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Fri Jul 25 22:38:44 2008
@@ -1024,10 +1024,11 @@
     
     // 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:


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

Reply via email to