[clang-tools-extra] a4f5e90 - [clang-tidy][NFC][doc] mention some range algorithms do not work for `vector<bool>` in C++20 (#120774)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 22 08:08:01 PST 2024
Author: Congcong Cai
Date: 2024-12-23T00:07:57+08:00
New Revision: a4f5e90e319e8bf36ed421a0445218ff17d4de03
URL: https://github.com/llvm/llvm-project/commit/a4f5e90e319e8bf36ed421a0445218ff17d4de03
DIFF: https://github.com/llvm/llvm-project/commit/a4f5e90e319e8bf36ed421a0445218ff17d4de03.diff
LOG: [clang-tidy][NFC][doc] mention some range algorithms do not work for `vector<bool>` in C++20 (#120774)
Added:
Modified:
clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst
index 1ce866ca1f66a0..912b42b33f9194 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst
@@ -104,6 +104,9 @@ Calls to the following std library algorithms are checked:
``std::unique``,
``std::upper_bound``.
+Note: some range algorithms for ``vector<bool>`` require C++23 because it uses
+proxy iterators.
+
Reverse Iteration
-----------------
More information about the cfe-commits
mailing list