2014-05-07 17:06:53 +08:00
|
|
|
// RUN: clang-tidy -checks=google-explicit-constructor -disable-checks='' %s -- 2>&1 | FileCheck %s
|
2014-02-28 08:27:50 +08:00
|
|
|
|
|
|
|
class A { A(int i); };
|
|
|
|
// CHECK: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor]
|
|
|
|
|
|
|
|
class B { B(int i); }; // NOLINT
|
|
|
|
// CHECK-NOT: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor]
|
|
|
|
|
|
|
|
class C { C(int i); }; // NOLINT(we-dont-care-about-categories-yet)
|
|
|
|
// CHECK-NOT: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor]
|
2014-05-07 17:06:53 +08:00
|
|
|
// CHECK: Suppressed 2 warnings (2 NOLINT)
|