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