mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:46:07 +00:00

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
10 lines
402 B
C++
10 lines
402 B
C++
// RUN: grep -Ev "// *[A-Z0-9_]+:" %s \
|
|
// RUN: | clang-format -style=llvm -assume-filename=foo.js \
|
|
// RUN: | FileCheck -strict-whitespace -check-prefix=CHECK1 %s
|
|
// RUN: grep -Ev "// *[A-Z0-9_]+:" %s \
|
|
// RUN: | clang-format -style=llvm -assume-filename=foo.cpp \
|
|
// RUN: | FileCheck -strict-whitespace -check-prefix=CHECK2 %s
|
|
// CHECK1: {{^a >>>= b;$}}
|
|
// CHECK2: {{^a >> >= b;$}}
|
|
a >>>= b;
|