
When clang-tidy get an empty checks, it will throw "no checks enabled" error and exit with non-zero return value. It make clang-tidy's wrapper program confused when in big project some files don't want to be checked and use `-checks=-*` to disable all checks. --------- Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
5 lines
156 B
C++
5 lines
156 B
C++
// RUN: not clang-tidy %s -checks='-*'
|
|
// RUN: clang-tidy %s -checks='-*' --allow-no-checks | FileCheck --match-full-lines %s
|
|
|
|
// CHECK: No checks enabled.
|