llvm-project/clang/test/Format/language-detection.cpp

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;