summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/select-checks.cpp
blob: ce3d4f13ace65ab5c30174cef29461dd93c0050b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
// RUN: clang-tidy %t.cpp -fix -checks='-*,llvm-*' --
// RUN: FileCheck -input-file=%t.cpp %s
// RUN: clang-tidy %s -checks='-*,an-unknown-check' -- 2>&1 | FileCheck -check-prefix=CHECK2 %s

// CHECK2: Error: no checks enabled.

namespace i {
}
// CHECK: } // namespace i

class A { A(int i); }; // Not fixing this, because the check is in google-.
// CHECK: class A { A(int i); };
OpenPOWER on IntegriCloud