summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.c
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-04-24 01:30:46 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-04-24 01:30:46 +0000
commit784fad7a4134c9504f7c3efa292e8a7b43155a2c (patch)
tree9403fc2b930f161d3f736e2c8b06ecf50d851836 /clang/test/FixIt/fixit.c
parent48ff3cf63bfa8019aca9b5df5f9fa496033c60cb (diff)
downloadbcm5719-llvm-784fad7a4134c9504f7c3efa292e8a7b43155a2c.tar.gz
bcm5719-llvm-784fad7a4134c9504f7c3efa292e8a7b43155a2c.zip
Teach clang -fixit to modify files in-place, or -fixit=suffix to create new
files with the additional suffix in the middle. llvm-svn: 102230
Diffstat (limited to 'clang/test/FixIt/fixit.c')
-rw-r--r--clang/test/FixIt/fixit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/test/FixIt/fixit.c b/clang/test/FixIt/fixit.c
index 9f858524c27..b799fa3b3b8 100644
--- a/clang/test/FixIt/fixit.c
+++ b/clang/test/FixIt/fixit.c
@@ -1,6 +1,8 @@
-// RUN: %clang_cc1 -pedantic -fixit %s -o - | grep -v 'CHECK' > %t
-// RUN: %clang_cc1 -pedantic -Werror -x c -
-// RUN: FileCheck -input-file=%t %s
+// RUN: cp %s %t
+// RUN: %clang_cc1 -pedantic -fixit -x c %t || true
+// RUN: grep -v CHECK %t > %t2
+// RUN: %clang_cc1 -pedantic -Werror -x c %t
+// RUN: FileCheck -input-file=%t2 %t
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
@@ -25,7 +27,7 @@ struct s s0 = { y: 5 };
// CHECK: int array0[5] = { [3] = 3 };
int array0[5] = { [3] 3 };
-void f1(x, y)
+void f1(x, y)
{
}
OpenPOWER on IntegriCloud