blob: 1059d4ffe479fdfd9abac9b42c3586cef9bdcdab [file] [log] [blame]
Alexander Kornienko31219d32014-02-28 00:27:50 +00001// RUN: clang-tidy -checks=google-explicit-constructor %s -- | FileCheck %s
2
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]