blob: 05d05b8c8c47c34b6ac940604e4d8296bf756555 [file] [log] [blame]
Alexander Kornienko23fe9592014-05-15 14:27:36 +00001// RUN: clang-tidy -checks='-*,google-explicit-constructor' %s -- 2>&1 | FileCheck %s
Alexander Kornienko31219d32014-02-28 00:27:50 +00002
3class A { A(int i); };
Alexander Kornienko15c5e6a2014-11-27 11:11:47 +00004// CHECK: :[[@LINE-1]]:11: warning: single-argument constructors must be explicit [google-explicit-constructor]
Alexander Kornienko31219d32014-02-28 00:27:50 +00005
6class B { B(int i); }; // NOLINT
Alexander Kornienko15c5e6a2014-11-27 11:11:47 +00007// CHECK-NOT: :[[@LINE-1]]:11: warning: single-argument constructors must be explicit [google-explicit-constructor]
Alexander Kornienko31219d32014-02-28 00:27:50 +00008
9class C { C(int i); }; // NOLINT(we-dont-care-about-categories-yet)
Alexander Kornienko15c5e6a2014-11-27 11:11:47 +000010// CHECK-NOT: :[[@LINE-1]]:11: warning: single-argument constructors must be explicit [google-explicit-constructor]
Alexander Kornienko5d174542014-05-07 09:06:53 +000011// CHECK: Suppressed 2 warnings (2 NOLINT)