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

source code of clang-tools-extra/test/clang-tidy/infrastructure/nolintbeginend-begin-all-end-specific.cpp