forked from OSchip/llvm-project
11 lines
547 B
C++
11 lines
547 B
C++
// RUN: clang-tidy -checks=google-explicit-constructor %s -- | FileCheck %s
|
|
|
|
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]
|