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

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 22 20:40:49 PST 2024


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


HerrCai0907 wrote:

> I too have the feeling that this feature is a responsibility of the build system, not of clang-tidy

I think clang-tidy should provide a easy-use environment. some project may don't support clang compiler due to CI (e.g. clang and gcc will warning different thing in `-Wall`. But they still can get benefit from clang-tidy. I think it is good to support this function in general. But in which way it need to be discussed. I personally do not like regex solution. Instead, supporting unknown arguments looks better.

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


More information about the cfe-commits mailing list