[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)
Félix-Antoine Constantin via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 26 07:32:52 PDT 2025
================
@@ -355,6 +356,16 @@ see https://clang.llvm.org/extra/clang-tidy/QueryBasedCustomChecks.html.
cl::init(false),
cl::cat(ClangTidyCategory));
+static cl::list<std::string> RemovedArgs("removed-arg", desc(R"(
----------------
felix642 wrote:
I think `removed-arg` is fine here, it's somewhat the opposite of extra and is pretty concise. I was trying to find some other adjectives that could replace removed and didn't come up with anything. The best one I could find is `excluded-arg`, but it doesn't sound better than what we already have.
> PS: I take it that it should be anyway plural args since it's a list, right?
`extra-arg` isn't plural, so I think we should be consistent. What do you think?
I'll keep this comment open in case someone thinks of something better, but I don't plan on changing it unless someones comes up with an idea.
https://github.com/llvm/llvm-project/pull/164344
More information about the cfe-commits
mailing list