Daniel Jasper | 7b8d263 | 2014-04-02 08:52:06 +0000 | [diff] [blame] | 1 | // RUN: clang-tidy -checks=google-explicit-constructor -disable-checks='' %s -- | FileCheck %s |
Alexander Kornienko | 31219d3 | 2014-02-28 00:27:50 +0000 | [diff] [blame] | 2 | |
| 3 | class A { A(int i); }; |
| 4 | // CHECK: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor] |
| 5 | |
| 6 | class B { B(int i); }; // NOLINT |
| 7 | // CHECK-NOT: :[[@LINE-1]]:11: warning: Single-argument constructors must be explicit [google-explicit-constructor] |
| 8 | |
| 9 | class 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] |