diff options
Diffstat (limited to 'clang/test/Format/language-detection.cpp')
-rw-r--r-- | clang/test/Format/language-detection.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/test/Format/language-detection.cpp b/clang/test/Format/language-detection.cpp index bec444dc9dd..2a53be71daf 100644 --- a/clang/test/Format/language-detection.cpp +++ b/clang/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; |