
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
13 lines
375 B
C++
13 lines
375 B
C++
// RUN: clang-format -output-replacements-xml -sort-includes %s \
|
|
// RUN: | FileCheck -strict-whitespace %s
|
|
|
|
// CHECK: <?xml
|
|
// CHECK-NEXT: {{<replacements.*incomplete_format='false'}}
|
|
// CHECK-NEXT: {{<replacement.*#include <a> #include <b><}}
|
|
// CHECK-NEXT: {{<replacement.*> <}}
|
|
// CHECK-NEXT: {{<replacement.*> <}}
|
|
#include <b>
|
|
#include <a>
|
|
|
|
int a;int*b;
|