summaryrefslogtreecommitdiff
path: root/test/Format/language-detection.cpp
blob: 72e2146c54a3ac0b797c2f828bf2bece20c2df61 (plain)
1
2
3
4
5
6
7
8
9
// 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;