1 // RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s
3 // NOLINTBEGIN(google-explicit-constructor)
5 // NOLINTEND(google-explicit-constructo) <-- typo: missing 'r'
7 // Note: the expected output has been split over several lines so that clang-tidy
8 // does not see the "no lint" suppression comment and mistakenly assume it
9 // is meant for itself.
10 // CHECK: :[[@LINE-7]]:4: error: unmatched 'NOLIN
11 // CHECK: TBEGIN' comment without a subsequent 'NOLIN
12 // CHECK: TEND' comment [clang-tidy-nolint]
13 // CHECK: :[[@LINE-9]]:11: warning: single-argument constructors must be marked explicit