blob: 21638c541d630e9f8e40632950b03eb508ac20cf [file] [log] [blame]
Daniel Jasperd07c8402013-07-29 08:19:24 +00001// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
Daniel Jasper7b8d2632014-04-02 08:52:06 +00002// RUN: clang-tidy %t.cpp -checks='(google-explicit-constructor|llvm-namespace-comment)' -disable-checks='' -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.