[cfe-commits] r44098 - /cfe/trunk/Driver/RewriteTest.cpp

Steve Naroff snaroff at apple.com
Tue Nov 13 19:37:31 PST 2007


Author: snaroff
Date: Tue Nov 13 21:37:28 2007
New Revision: 44098

URL: http://llvm.org/viewvc/llvm-project?rev=44098&view=rev
Log:

Comment out recent regression r44096.


Modified:
    cfe/trunk/Driver/RewriteTest.cpp

Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=44098&r1=44097&r2=44098&view=diff

==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Tue Nov 13 21:37:28 2007
@@ -386,7 +386,7 @@
   // Lastly, comment out the @end.
   SourceLocation LocEnd = PDecl->getAtEndLoc();
   Rewrite.ReplaceText(LocEnd, 0, "// ", 3);
-  
+#if 0  
   // Must comment out @optional/@required
   const char *startBuf = SM->getCharacterData(LocStart);
   const char *endBuf = SM->getCharacterData(LocEnd);
@@ -408,11 +408,13 @@
       
     }
   }
-
+#endif
 }
 
 void RewriteTest::RewriteForwardProtocolDecl(ObjcForwardProtocolDecl *PDecl) {
   SourceLocation LocStart = PDecl->getLocation();
+  if (LocStart.isInvalid())
+    assert(false && "Invalid SourceLocation");
   // FIXME: handle forward protocol that are declared across multiple lines.
   Rewrite.ReplaceText(LocStart, 0, "// ", 3);
 }





More information about the cfe-commits mailing list