Alexander Kornienko | 23fe959 | 2014-05-15 14:27:36 +0000 | [diff] [blame] | 1 | // RUN: clang-tidy -checks='-*,google-explicit-constructor' %s -- 2>&1 | FileCheck %s |
Alexander Kornienko | 31219d3 | 2014-02-28 00:27:50 +0000 | [diff] [blame] | 2 | |
| 3 | class A { A(int i); }; |
Alexander Kornienko | 15c5e6a | 2014-11-27 11:11:47 +0000 | [diff] [blame] | 4 | // CHECK: :[[@LINE-1]]:11: warning: single-argument constructors must be explicit [google-explicit-constructor] |
Alexander Kornienko | 31219d3 | 2014-02-28 00:27:50 +0000 | [diff] [blame] | 5 | |
| 6 | class B { B(int i); }; // NOLINT |
Alexander Kornienko | 15c5e6a | 2014-11-27 11:11:47 +0000 | [diff] [blame] | 7 | // CHECK-NOT: :[[@LINE-1]]:11: warning: single-argument constructors must be explicit [google-explicit-constructor] |
Alexander Kornienko | 31219d3 | 2014-02-28 00:27:50 +0000 | [diff] [blame] | 8 | |
| 9 | class C { C(int i); }; // NOLINT(we-dont-care-about-categories-yet) |
Alexander Kornienko | 15c5e6a | 2014-11-27 11:11:47 +0000 | [diff] [blame] | 10 | // CHECK-NOT: :[[@LINE-1]]:11: warning: single-argument constructors must be explicit [google-explicit-constructor] |
Alexander Kornienko | 5d17454 | 2014-05-07 09:06:53 +0000 | [diff] [blame] | 11 | // CHECK: Suppressed 2 warnings (2 NOLINT) |