[clang][Driver] Support simplified triple versions for config files (#111387)
[llvm-project.git] / clang / test / Format / dry-run-warning.cpp
blob4b85de40b8cd086ced72284ca8bc26587645c49c
1 // RUN: echo '{' > %t.json
2 // RUN: echo ' "married": true' >> %t.json
3 // RUN: echo '}' >> %t.json
5 // RUN: clang-format -n -style=LLVM %t.json 2>&1 | FileCheck %s -allow-empty
7 // RUN: clang-format -n -style=LLVM < %t.json 2>&1 \
8 // RUN: | FileCheck %s -check-prefix=CHECK2 -strict-whitespace
10 // RUN: echo '{' > %t.json
11 // RUN: echo ' "married" : true' >> %t.json
12 // RUN: echo '}' >> %t.json
14 // RUN: clang-format -n -style=LLVM < %t.json 2>&1 | FileCheck %s -allow-empty
16 // RUN: clang-format -n -style=LLVM %t.json 2>&1 \
17 // RUN: | FileCheck %s -check-prefix=CHECK2 -strict-whitespace
19 // RUN: rm %t.json
21 // CHECK-NOT: warning
22 // CHECK2: warning: code should be clang-formatted