[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
Sat Dec 6 13:44:36 PST 2025


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


================
@@ -356,6 +358,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"(
+List of arguments to remove from the command
+line sent to the compiler. Please note that
+removing arguments might change the semantic
+of the analzed code, possibly leading to
----------------
vbvictor wrote:

```suggestion
of the analyzed code, possibly leading to
```

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


More information about the cfe-commits mailing list