| 1 |
// NOLINTEND |
| 2 |
class A { A(int i); }; |
| 3 |
|
| 4 |
// Note: the expected output has been split over several lines so that clang-tidy |
| 5 |
// does not see the "no lint" suppression comment and mistakenly assume it |
| 6 |
// is meant for itself. |
| 7 |
// CHECK: :[[@LINE-6]]:4: error: unmatched 'NOLIN |
| 8 |
// CHECK: TEND' comment without a previous 'NOLIN |
| 9 |
// CHECK: TBEGIN' comment [clang-tidy-nolint] |
| 10 |
// CHECK: :[[@LINE-8]]:11: warning: single-argument constructors must be marked explicit |
| 11 |
|
| 12 |
// RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s |