[cfe-commits] r48847 - /cfe/trunk/test/Rewriter/
Steve Naroff
snaroff at apple.com
Wed Mar 26 15:28:41 PDT 2008
Author: snaroff
Date: Wed Mar 26 17:28:40 2008
New Revision: 48847
URL: http://llvm.org/viewvc/llvm-project?rev=48847&view=rev
Log:
Fix rewriter tests to work with new output file logic. This changes forces the output to standard out (rather than generate a .cpp file, which is the new default for the rewriter).
Modified:
cfe/trunk/test/Rewriter/id-test-3.m
cfe/trunk/test/Rewriter/ivar-encoding-1.m
cfe/trunk/test/Rewriter/ivar-encoding-2.m
cfe/trunk/test/Rewriter/metadata-test-1.m
cfe/trunk/test/Rewriter/metadata-test-2.m
cfe/trunk/test/Rewriter/method-encoding-1.m
cfe/trunk/test/Rewriter/objc-encoding-bug-1.m
cfe/trunk/test/Rewriter/objc-string-concat-1.m
cfe/trunk/test/Rewriter/objc-super-test.m
cfe/trunk/test/Rewriter/objc-synchronized-1.m
cfe/trunk/test/Rewriter/protocol-rewrite-1.m
cfe/trunk/test/Rewriter/rewrite-api-bug.m
cfe/trunk/test/Rewriter/rewrite-foreach-1.m
cfe/trunk/test/Rewriter/rewrite-foreach-2.m
cfe/trunk/test/Rewriter/rewrite-foreach-3.m
cfe/trunk/test/Rewriter/rewrite-foreach-4.m
cfe/trunk/test/Rewriter/rewrite-foreach-5.m
cfe/trunk/test/Rewriter/rewrite-foreach-6.m
cfe/trunk/test/Rewriter/rewrite-protocol-type-1.m
cfe/trunk/test/Rewriter/rewrite-try-catch.m
cfe/trunk/test/Rewriter/static-type-protocol-1.m
cfe/trunk/test/Rewriter/undecl-objc-h.m
cfe/trunk/test/Rewriter/undeclared-method-1.m
cfe/trunk/test/Rewriter/undef-field-reference-1.m
cfe/trunk/test/Rewriter/va-method.m
Modified: cfe/trunk/test/Rewriter/id-test-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/id-test-3.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/id-test-3.m (original)
+++ cfe/trunk/test/Rewriter/id-test-3.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol P
- (id<P>) Meth: (id<P>) Arg;
Modified: cfe/trunk/test/Rewriter/ivar-encoding-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/ivar-encoding-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/ivar-encoding-1.m (original)
+++ cfe/trunk/test/Rewriter/ivar-encoding-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface Intf
{
Modified: cfe/trunk/test/Rewriter/ivar-encoding-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/ivar-encoding-2.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/ivar-encoding-2.m (original)
+++ cfe/trunk/test/Rewriter/ivar-encoding-2.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@implementation Intf
{
Modified: cfe/trunk/test/Rewriter/metadata-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/metadata-test-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/metadata-test-1.m (original)
+++ cfe/trunk/test/Rewriter/metadata-test-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface Intf
@end
Modified: cfe/trunk/test/Rewriter/metadata-test-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/metadata-test-2.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/metadata-test-2.m (original)
+++ cfe/trunk/test/Rewriter/metadata-test-2.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
typedef struct _NSPoint {
float x;
Modified: cfe/trunk/test/Rewriter/method-encoding-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/method-encoding-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/method-encoding-1.m (original)
+++ cfe/trunk/test/Rewriter/method-encoding-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol P1
- (void) MyProtoMeth : (int **) arg1 : (void*) arg2;
Modified: cfe/trunk/test/Rewriter/objc-encoding-bug-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-encoding-bug-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/objc-encoding-bug-1.m (original)
+++ cfe/trunk/test/Rewriter/objc-encoding-bug-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
typedef struct NSMethodFrameArgInfo {
struct NSMethodFrameArgInfo *subInfo;
Modified: cfe/trunk/test/Rewriter/objc-string-concat-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-string-concat-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/objc-string-concat-1.m (original)
+++ cfe/trunk/test/Rewriter/objc-string-concat-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@class NSString;
Modified: cfe/trunk/test/Rewriter/objc-super-test.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-super-test.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/objc-super-test.m (original)
+++ cfe/trunk/test/Rewriter/objc-super-test.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface SUPER
- (int) MainMethod;
Modified: cfe/trunk/test/Rewriter/objc-synchronized-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/objc-synchronized-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/objc-synchronized-1.m (original)
+++ cfe/trunk/test/Rewriter/objc-synchronized-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
id SYNCH_EXPR();
void SYNCH_BODY();
Modified: cfe/trunk/test/Rewriter/protocol-rewrite-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/protocol-rewrite-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/protocol-rewrite-1.m (original)
+++ cfe/trunk/test/Rewriter/protocol-rewrite-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
typedef struct MyWidget {
int a;
Modified: cfe/trunk/test/Rewriter/rewrite-api-bug.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-api-bug.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-api-bug.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-api-bug.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface MyDerived
- (void) instanceMethod;
Modified: cfe/trunk/test/Rewriter/rewrite-foreach-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-foreach-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-foreach-1.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-foreach-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol P @end
Modified: cfe/trunk/test/Rewriter/rewrite-foreach-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-foreach-2.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-foreach-2.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-foreach-2.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol P @end
Modified: cfe/trunk/test/Rewriter/rewrite-foreach-3.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-foreach-3.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-foreach-3.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-foreach-3.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol P @end
Modified: cfe/trunk/test/Rewriter/rewrite-foreach-4.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-foreach-4.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-foreach-4.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-foreach-4.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface MyList
- (id) allKeys;
Modified: cfe/trunk/test/Rewriter/rewrite-foreach-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-foreach-5.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-foreach-5.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-foreach-5.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface MyList
- (id) allKeys;
Modified: cfe/trunk/test/Rewriter/rewrite-foreach-6.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-foreach-6.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-foreach-6.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-foreach-6.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang %s -rewrite-test
+// RUN: clang %s -rewrite-test -o=-
// rdar://5716356
// FIXME: Should be able to pipe into clang, but code is not
// yet correct for other reasons: rdar://5716940
Modified: cfe/trunk/test/Rewriter/rewrite-protocol-type-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-protocol-type-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-protocol-type-1.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-protocol-type-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol MyProto1
@end
Modified: cfe/trunk/test/Rewriter/rewrite-try-catch.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-try-catch.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-try-catch.m (original)
+++ cfe/trunk/test/Rewriter/rewrite-try-catch.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface Foo @end
@interface GARF @end
Modified: cfe/trunk/test/Rewriter/static-type-protocol-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/static-type-protocol-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/static-type-protocol-1.m (original)
+++ cfe/trunk/test/Rewriter/static-type-protocol-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@protocol Proto
- (void) ProtoDidget;
Modified: cfe/trunk/test/Rewriter/undecl-objc-h.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/undecl-objc-h.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/undecl-objc-h.m (original)
+++ cfe/trunk/test/Rewriter/undecl-objc-h.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
typedef struct S {
int * pint;
Modified: cfe/trunk/test/Rewriter/undeclared-method-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/undeclared-method-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/undeclared-method-1.m (original)
+++ cfe/trunk/test/Rewriter/undeclared-method-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface Derived @end
Modified: cfe/trunk/test/Rewriter/undef-field-reference-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/undef-field-reference-1.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/undef-field-reference-1.m (original)
+++ cfe/trunk/test/Rewriter/undef-field-reference-1.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
@interface MyDerived
{
Modified: cfe/trunk/test/Rewriter/va-method.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/va-method.m?rev=48847&r1=48846&r2=48847&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/va-method.m (original)
+++ cfe/trunk/test/Rewriter/va-method.m Wed Mar 26 17:28:40 2008
@@ -1,4 +1,4 @@
-// RUN: clang -rewrite-test %s
+// RUN: clang -rewrite-test %s -o=-
#include <stdarg.h>
More information about the cfe-commits
mailing list