summaryrefslogtreecommitdiffstats
path: root/clang/test/Format/incomplete.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-10-19 16:21:29 +0000
committerNico Weber <nicolasweber@gmx.de>2015-10-19 16:21:29 +0000
commit3cb667edaa8f48a4fea61252458ba50166ba1f67 (patch)
treee5612c05a183c670106038cb5cfc1fe4a63f519e /clang/test/Format/incomplete.cpp
parent843dc6ffbf8c6924ea0b5af2ec5df3d7609aa16f (diff)
downloadbcm5719-llvm-3cb667edaa8f48a4fea61252458ba50166ba1f67.tar.gz
bcm5719-llvm-3cb667edaa8f48a4fea61252458ba50166ba1f67.zip
clang-format: Use pipes instead of temporary files for most lit tests.
This makes the format tests look more like most other FileCheck tests in clang. The multiple-inputs tests still use temp files, to make sure that the file input code in clang-format stays tested. Stop stripping out the comment lines in style-on-command-line.cpp as they don't get in the way and it makes the test simpler. Also remove 2>&1s on the tests in that file that don't need it. http://reviews.llvm.org/D13852 llvm-svn: 250706
Diffstat (limited to 'clang/test/Format/incomplete.cpp')
-rw-r--r--clang/test/Format/incomplete.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/Format/incomplete.cpp b/clang/test/Format/incomplete.cpp
index bd2c74ca3c1..8a65fad657c 100644
--- a/clang/test/Format/incomplete.cpp
+++ b/clang/test/Format/incomplete.cpp
@@ -1,6 +1,5 @@
-// RUN: grep -Ev "// *[A-Z-]+:" %s > %t2.cpp
-// RUN: clang-format -style=LLVM %t2.cpp -cursor=0 > %t.cpp
-// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s
+// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style=LLVM -cursor=0 \
+// RUN: | FileCheck -strict-whitespace %s
// CHECK: {{"IncompleteFormat": true}}
// CHECK: {{^int\ \i;$}}
int i;
OpenPOWER on IntegriCloud