[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
Wed Oct 22 03:55:55 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:

As an example, removing the `m` flag from my STM32 project made clang/clang-tidy think pointers are 64 bits instead of 32 bits, and I started getting warnings about casting uint32s to pointers.



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


More information about the cfe-commits mailing list