llvm-for-llvmta/tools/clang/test/Format/language-detection.cpp

10 lines
402 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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;