[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------------
# | /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: error: CHECK-NO-INPUT: expected string not found in input
# | // CHECK-NO-INPUT: Error: no input files specified.
# |                    ^
# | <stdin>:1:1: note: scanning from here
# | Error: no checks enabled.
# | ^
# | 
# | 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:
# | <<<<<<
# |          1: Error: no checks enabled. 
# | check:2     X~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |          2: USAGE: clang-tidy [options] <source0> [... <sourceN>] 
# | check:2     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          3:  
# | check:2     ~
# |          4: OPTIONS: 
# | check:2     ~~~~~~~~~
# |          5:  
# | check:2     ~
# |          6: Generic Options: 
# | check:2     ~~~~~~~~~~~~~~~~~
# |          7:  
# | check:2     ~
# |          8:  --help - Display available options (--help-hidden for more) 
# | check:2     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |          9:  --version - Display the version of this program 
# | check:2     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |         10:  
# | check:2     ~
# |         11: clang-tidy options: 
# | check:2     ~~~~~~~~~~~~~~~~~~~~
# |         12:  
# | check:2     ~
# |         13:  --allow-no-checks - Allow empty enabled checks. This suppresses 
...

```

</details>

https://github.com/llvm/llvm-project/pull/203987


More information about the cfe-commits mailing list