[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 Nov 2 13:13:47 PST 2025


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


================
@@ -151,6 +151,9 @@ struct ClangTidyOptions {
   /// Add extra compilation arguments to the start of the list.
   std::optional<ArgList> ExtraArgsBefore;
 
+  /// Remove command line arguments sent to the compiler matching this.
+  std::optional<std::vector<std::string>> RemovedArgs;
----------------
vbvictor wrote:

```suggestion
  std::optional<ArgList> RemovedArgs;
```

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


More information about the cfe-commits mailing list