blob: f82ed0b16701ac352fbf36f68a97fe6ff88b94dd [file] [log] [blame]
Daniel Jasperd07c8402013-07-29 08:19:24 +00001// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
Alexander Kornienko23fe9592014-05-15 14:27:36 +00002// RUN: clang-tidy %t.cpp -checks='-*,google-explicit-constructor,llvm-namespace-comment' -fix -- > %t.msg 2>&1
Daniel Jasperd07c8402013-07-29 08:19:24 +00003// RUN: FileCheck -input-file=%t.cpp %s
Alexander Kornienko38d81b42014-03-27 10:24:11 +00004// RUN: FileCheck -input-file=%t.msg -check-prefix=CHECK-MESSAGES %s
Daniel Jasperd07c8402013-07-29 08:19:24 +00005
6namespace i {
7}
8// CHECK: } // namespace i
Alexander Kornienko38d81b42014-03-27 10:24:11 +00009// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
Daniel Jasperd07c8402013-07-29 08:19:24 +000010
11class A { A(int i); };
12// CHECK: class A { explicit A(int i); };
Alexander Kornienko38d81b42014-03-27 10:24:11 +000013// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
14// CHECK-MESSAGES: clang-tidy applied 2 of 2 suggested fixes.