================
@@ -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$";
----------------
zeyi2 wrote:
Nit: Could we follow the same regex used in `cert`?
```suggestion
"^::std::remove$;^::std::remove_if$;^::std::unique$";
```
https://github.com/llvm/llvm-project/pull/184547
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits