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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 26 00:30:16 PDT 2025


=?utf-8?q?Félix-Antoine?= Constantin,
=?utf-8?q?Félix-Antoine?= Constantin,
=?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>


================
@@ -355,6 +356,16 @@ see https://clang.llvm.org/extra/clang-tidy/QueryBasedCustomChecks.html.
                                               cl::init(false),
                                               cl::cat(ClangTidyCategory));
 
+static cl::list<std::string> RemovedArgs("removed-arg", desc(R"(
----------------
vbvictor wrote:

I prefer `remove-arg` name because we usually use verbs in present tense, but if it's an adjective like `extra-arg` we can leave it as is, WDYT?
```suggestion
static cl::list<std::string> RemovedArgs("remove-arg", desc(R"(
```

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


More information about the cfe-commits mailing list