brintos

brintos / llvm-project-archived public Read only

0
0
Text · 516 B · 46bf43c Raw
12 lines · cpp
1// RUN: clang-tidy %s -checks='-*,llvm-namespace-*' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' %s2// RUN: not clang-tidy %s -checks='-*,an-unknown-check' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' -check-prefix=CHECK2 %s3 4// CHECK2: Error: no checks enabled.5 6namespace i {7}8// CHECK: :[[@LINE-1]]:1: warning: namespace 'i' not terminated with a closing comment [llvm-namespace-comment]9 10// Expect no warnings from the google-explicit-constructor check:11class A { A(int i); };12