[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 8 09:02:15 PST 2025
================
@@ -586,6 +586,24 @@ runClangTidy(clang::tidy::ClangTidyContext &Context,
return AdjustedArgs;
};
+ // Remove unwanted arguments passed to the compiler
+ ArgumentsAdjuster PerFileArgumentRemover =
+ [&Context](const CommandLineArguments &Args, StringRef Filename) {
+ ClangTidyOptions Opts = Context.getOptionsForFile(Filename);
----------------
EugeneZelenko wrote:
`const`?
https://github.com/llvm/llvm-project/pull/164344
More information about the cfe-commits
mailing list