xref: /llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/select-checks.cpp (revision 885c559369fe3d6323898c17787bd0454065fc34)
1 // RUN: clang-tidy %s -checks='-*,llvm-namespace-*' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' %s
2 // RUN: not clang-tidy %s -checks='-*,an-unknown-check' -- 2>&1 | FileCheck -implicit-check-not='{{warning:|error:}}' -check-prefix=CHECK2 %s
3 
4 // CHECK2: Error: no checks enabled.
5 
6 namespace 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:
11 class A { A(int i); };
12