[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Format / error-config.cpp
blob9f73a9eb9507e67c2320f1733c3a8399fd6731a1
1 // RUN: clang-format %s --Wno-error=unknown --style="{UnknownKey: true}" 2>&1 | FileCheck %s -check-prefix=CHECK
2 // RUN: not clang-format %s --style="{UnknownKey: true}" 2>&1 | FileCheck %s -check-prefix=CHECK-FAIL
4 // CHECK: <command-line>:1:2: warning: unknown key 'UnknownKey'
5 // CHECK-NEXT: {UnknownKey: true}
6 // CHECK-NEXT: ^~~~~~~~~~
7 // CHECK-FAIL: <command-line>:1:2: error: unknown key 'UnknownKey'
8 // CHECK-FAIL-NEXT: {UnknownKey: true}
9 // CHECK-FAIL-NEXT: ^~~~~~~~~~
11 int i ;