diff options
Diffstat (limited to 'test/Format/language-detection.cpp')
-rw-r--r-- | test/Format/language-detection.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/Format/language-detection.cpp b/test/Format/language-detection.cpp index bec444d..2a53be7 100644 --- a/test/Format/language-detection.cpp +++ b/test/Format/language-detection.cpp @@ -1,7 +1,9 @@ -// RUN: grep -Ev "// *[A-Z0-9_]+:" %s > %t.js -// RUN: grep -Ev "// *[A-Z0-9_]+:" %s > %t.cpp -// RUN: clang-format -style=llvm %t.js | FileCheck -strict-whitespace -check-prefix=CHECK1 %s -// RUN: clang-format -style=llvm %t.cpp | FileCheck -strict-whitespace -check-prefix=CHECK2 %s +// 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; |