[clang-tools-extra] [clang-tidy] Redirect hicpp-ignored-remove-result to bugprone-unused-return-value (PR #184547)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 3 23:16:11 PST 2026


================
@@ -109,6 +109,16 @@ 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"] =
+        "::std::remove$;::std::remove_if$;::std::unique$";
----------------
IamYJLee wrote:

> Nit: Could we follow the same regex used in `cert`?

I have updated it with reference to [CertErr33](https://github.com/llvm/llvm-project/pull/99380).

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


More information about the cfe-commits mailing list