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

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 21 02:02:52 PDT 2025


=?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>


================
@@ -329,6 +329,10 @@ An overview of all the command-line options:
                                    example, to place the correct user name in
                                    TODO() comments in the relevant check.
     WarningsAsErrors             - Same as '--warnings-as-errors'.
+    RemovedArgs                  - List of arguments to remove from the command
+                                   line sent to the compiler. Please note that 
+                                   removing arguments from the command line 
+                                   might lead to false positive or negatives. 
----------------
carlosgalvezp wrote:

What about: `might change the semantics of the analyzed code, possibly leading to crashes, false positives or false negatives`. 

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


More information about the cfe-commits mailing list