blob: f192930c2b70da17dd0cbbecfa0a820cd8c3bb14 [file] [log] [blame]
Daniel Jasper7b8d2632014-04-02 08:52:06 +00001// RUN: clang-tidy -checks=google-explicit-constructor -disable-checks='' %s -- | FileCheck %s
Alexander Kornienko31219d32014-02-28 00:27:50 +00002
3class A { A(int i); };
4// CHECK: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor]
5
6class B { B(int i); }; // NOLINT
7// CHECK-NOT: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor]
8
9class C { C(int i); }; // NOLINT(we-dont-care-about-categories-yet)
10// CHECK-NOT: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor]