llvm-capstone/clang/test/Format/disable-format.cpp
Nico Weber 3cb667edaa 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
2015-10-19 16:21:29 +00:00

6 lines
137 B
C++

// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style=none \
// RUN: | FileCheck -strict-whitespace %s
// CHECK: int i;
int i;