[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / clang-tools-extra / test / clang-tidy / infrastructure / nolintbeginend-begin-specific-end-global.cpp
blobc6fcfddd09ba8f3c99638085b4d1fd452a2fd50b
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
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-6]]:11: warning: single-argument constructors must be marked explicit
11 // CHECK: :[[@LINE-6]]:4: error: unmatched 'NOLIN
12 // CHECK: TEND' comment without a previous 'NOLIN
13 // CHECK: TBEGIN' comment [clang-tidy-nolint]
15 // NOLINTBEGIN(*)
16 class B { B(int i); };
17 // NOLINTEND
19 // Note: the expected output has been split over several lines so that clang-tidy
20 // does not see the "no lint" suppression comment and mistakenly assume it
21 // is meant for itself.
22 // CHECK: :[[@LINE-6]]:11: warning: single-argument constructors must be marked explicit
23 // CHECK: :[[@LINE-6]]:4: error: unmatched 'NOLIN
24 // CHECK: TEND' comment without a previous 'NOLIN
25 // CHECK: TBEGIN' comment [clang-tidy-nolint]