[clang-tools-extra] [clang-tidy][NFC] Add more test coverage for tidy errors (PR #203987)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 00:09:02 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang-tools-extra` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/56584
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang Tools :: clang-tidy/infrastructure/cli-argument-errors.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
not clang-tidy -- 2>&1 | FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/cli-argument-errors.cpp -check-prefix=CHECK-NO-INPUT
# executed command: not clang-tidy --
# note: command had no output on stdout or stderr
# executed command: FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/cli-argument-errors.cpp -check-prefix=CHECK-NO-INPUT
# .---command stderr------------
# | [1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/cli-argument-errors.cpp:2:20: [0m[0;1;31merror: [0m[1mCHECK-NO-INPUT: expected string not found in input
[0m# | [1m[0m// CHECK-NO-INPUT: Error: no input files specified.
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:1:1: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0mError: no checks enabled.
# | [0;1;32m^
[0m# | [0;1;32m[0m
# | Input file: <stdin>
# | Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/cli-argument-errors.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | [1m[0m[0;1;30m 1: [0m[1m[0;1;46mError: no checks enabled. [0m
# | [0;1;31mcheck:2 X~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
[0m# | [0;1;31m[0m[0;1;30m 2: [0m[1m[0;1;46mUSAGE: clang-tidy [options] <source0> [... <sourceN>] [0m
# | [0;1;31mcheck:2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 3: [0m[1m[0;1;46m [0m
# | [0;1;31mcheck:2 ~
[0m# | [0;1;31m[0m[0;1;30m 4: [0m[1m[0;1;46mOPTIONS: [0m
# | [0;1;31mcheck:2 ~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 5: [0m[1m[0;1;46m [0m
# | [0;1;31mcheck:2 ~
[0m# | [0;1;31m[0m[0;1;30m 6: [0m[1m[0;1;46mGeneric Options: [0m
# | [0;1;31mcheck:2 ~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 7: [0m[1m[0;1;46m [0m
# | [0;1;31mcheck:2 ~
[0m# | [0;1;31m[0m[0;1;30m 8: [0m[1m[0;1;46m --help - Display available options (--help-hidden for more) [0m
# | [0;1;31mcheck:2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 9: [0m[1m[0;1;46m --version - Display the version of this program [0m
# | [0;1;31mcheck:2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 10: [0m[1m[0;1;46m [0m
# | [0;1;31mcheck:2 ~
[0m# | [0;1;31m[0m[0;1;30m 11: [0m[1m[0;1;46mclang-tidy options: [0m
# | [0;1;31mcheck:2 ~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;31m[0m[0;1;30m 12: [0m[1m[0;1;46m [0m
# | [0;1;31mcheck:2 ~
[0m# | [0;1;31m[0m[0;1;30m 13: [0m[1m[0;1;46m --allow-no-checks - Allow empty enabled checks. This suppresses [0m
...
```
</details>
https://github.com/llvm/llvm-project/pull/203987
More information about the cfe-commits
mailing list