14 lines · cpp
1// RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s2 3// NOLINTBEGIN4// NOLINTBEGIN5class A { A(int i); };6// NOLINTEND7 8// Note: the expected output has been split over several lines so that clang-tidy9// does not see the "no lint" suppression comment and mistakenly assume it10// is meant for itself.11// CHECK: :[[@LINE-8]]:4: error: unmatched 'NOLIN12// CHECK: TBEGIN' comment without a subsequent 'NOLIN13// CHECK: TEND' comment [clang-tidy-nolint]14