blob: d4a5c4cd623fb8cbd9994d95116ea7cf799e091e [file] [log] [blame]
Alexander Kornienko5d174542014-05-07 09:06:53 +00001// RUN: clang-tidy -checks=google-explicit-constructor -disable-checks='' %s -- 2>&1 | 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]
Alexander Kornienko5d174542014-05-07 09:06:53 +000011// CHECK: Suppressed 2 warnings (2 NOLINT)