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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 08:47:13 PST 2026


================
@@ -1,25 +1,10 @@
 .. title:: clang-tidy - hicpp-ignored-remove-result
+.. meta::
+   :http-equiv=refresh: 5;URL=../bugprone/unused-return-value.html
 
 hicpp-ignored-remove-result
 ===========================
 
-Ensure that the result of ``std::remove``, ``std::remove_if`` and ``std::unique``
-are not ignored according to
-`rule 17.5.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-rules>`_.
-
-The mutating algorithms ``std::remove``, ``std::remove_if`` and both overloads
-of ``std::unique`` operate by swapping or moving elements of the range they are
-operating over. On completion, they return an iterator to the last valid
-element. In the majority of cases the correct behavior is to use this result as
-the first operand in a call to ``std::erase``.
----------------
vbvictor wrote:

We should leave this here. No need to remove i think

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


More information about the cfe-commits mailing list