[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 13 06:58:22 PST 2025


=?utf-8?q?Félix-Antoine?= Constantin,
=?utf-8?q?Félix-Antoine?= Constantin
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/164344 at github.com>


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 2988 tests passed
* 30 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang Tools
<details>
<summary>Clang Tools.clang-tidy/infrastructure/removed-args.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
not clang-tidy C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\removed-args.cpp --allow-no-checks -- -fnot-an-option | FileCheck C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\removed-args.cpp -check-prefix=INVALID-A
# executed command: not clang-tidy 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\removed-args.cpp' --allow-no-checks -- -fnot-an-option
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\removed-args.cpp' -check-prefix=INVALID-A
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\removed-args.cpp:7:15: error: INVALID-A: expected string not found in input
# | // INVALID-A: error: unknown argument: '-fnot-an-option' [clang-diagnostic-error]
# |               ^
# | <stdin>:1:1: note: scanning from here
# | No checks enabled.
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang-tools-extra\test\clang-tidy\infrastructure\removed-args.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          1: No checks enabled. 
# | check:7     X~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list