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