[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / clang-tidy / infrastructure / nolintbeginend-end-without-begin.cpp
blobcea16610823dd45c334b372cadf118cbb2a699fa
1 // RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s
3 // NOLINTEND
4 class A { A(int i); };
6 // Note: the expected output has been split over several lines so that clang-tidy
7 // does not see the "no lint" suppression comment and mistakenly assume it
8 // is meant for itself.
9 // CHECK: :[[@LINE-6]]:4: error: unmatched 'NOLIN
10 // CHECK: TEND' comment without a previous 'NOLIN
11 // CHECK: TBEGIN' comment [clang-tidy-nolint]
12 // CHECK: :[[@LINE-8]]:11: warning: single-argument constructors must be marked explicit