13 lines · cpp
1// NOLINTEND2class A { A(int i); };3 4// 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-6]]:4: error: unmatched 'NOLIN8// CHECK: TEND' comment without a previous 'NOLIN9// CHECK: TBEGIN' comment [clang-tidy-nolint]10// CHECK: :[[@LINE-8]]:11: warning: single-argument constructors must be marked explicit11 12// RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s13