brintos

brintos / llvm-project-archived public Read only

0
0
Text · 554 B · cea1661 Raw
13 lines · cpp
1// RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s2 3// NOLINTEND4class A { A(int i); };5 6// Note: the expected output has been split over several lines so that clang-tidy7//       does not see the "no lint" suppression comment and mistakenly assume it8//       is meant for itself.9// CHECK: :[[@LINE-6]]:4: error: unmatched 'NOLIN10// CHECK: TEND' comment without a previous 'NOLIN11// CHECK: TBEGIN' comment [clang-tidy-nolint]12// CHECK: :[[@LINE-8]]:11: warning: single-argument constructors must be marked explicit13