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