[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / clang-tidy / infrastructure / nolintbeginend-typo-in-check-name.cpp
blob0f2f9994c1fa0e589bcee8d2b03552206cd5f9a3
1 // RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s
3 // NOLINTBEGIN(google-explicit-constructor)
4 class A { A(int i); };
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