| 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 | |