[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:00:49 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>
================
@@ -0,0 +1,5 @@
+// RUN: not clang-tidy %s -- -fnot-an-option | FileCheck %s -check-prefix=INVALID-A
+// RUN: clang-tidy %s --config="{RemovedArgs: ['-fnot-an-option']}" -- -fnot-an-option
+// RUN: clang-tidy %s --config="{RemovedArgs: ['-fnot-another-option', '-fnot-an-option']}" -- -fnot-an-option -fnot-another-option
+
+// INVALID-A: error: unknown argument: '-fnot-an-option' [clang-diagnostic-error]
----------------
carlosgalvezp wrote:
Missing newline at the end of the file
https://github.com/llvm/llvm-project/pull/164344
More information about the cfe-commits
mailing list