brintos

brintos / llvm-project-archived public Read only

0
0
Text · 831 B · 0c02616 Raw
16 lines · cpp
1// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp2// RUN: not clang-tidy %t.cpp -checks='-*,google-explicit-constructor' -fix -- > %t.msg 2>&13// RUN: FileCheck -input-file=%t.cpp -check-prefix=CHECK-FIX %s4// RUN: FileCheck -input-file=%t.msg -check-prefix=CHECK-MESSAGES %s5// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp6// RUN: clang-tidy %t.cpp -checks='-*,google-explicit-constructor' -fix-errors -- > %t.msg 2>&17// RUN: FileCheck -input-file=%t.cpp -check-prefix=CHECK-FIX2 %s8// RUN: FileCheck -input-file=%t.msg -check-prefix=CHECK-MESSAGES2 %s9 10class A { A(int i); }11// CHECK-FIX: class A { A(int i); }{{$}}12// CHECK-MESSAGES: Fixes have NOT been applied.13// CHECK-FIX2: class A { explicit A(int i); };14// CHECK-MESSAGES2: note: FIX-IT applied suggested code changes15// CHECK-MESSAGES2: clang-tidy applied 2 of 2 suggested fixes.16