[clang-tools-extra] [clang-tidy] Add check hicpp-ignored-remove-result (PR #73119)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 23 02:05:26 PST 2023
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/73119 at github.com>
================
@@ -107,6 +119,14 @@ class HICPPModule : public ClangTidyModule {
CheckFactories.registerCheck<cppcoreguidelines::ProTypeVarargCheck>(
"hicpp-vararg");
}
+
+ ClangTidyOptions getModuleOptions() override {
+ ClangTidyOptions Options;
+ ClangTidyOptions::OptionMap &Opts = Options.CheckOptions;
+ Opts["hicpp-ignored-remove-result.CheckedFunctions"] = CheckedFunctions;
----------------
PiotrZSL wrote:
Personally I'm not fan of such aliases. For me those should be simply new checks (aka check that inherit from a base class, override configuration and such configuration should not be visible outside)
https://github.com/llvm/llvm-project/pull/73119
More information about the cfe-commits
mailing list