[clang-tools-extra] [clang-tidy][NFC][doc] mention some range algorithms do not work for `vector<bool>` in C++20 (PR #120774)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 20 09:02:13 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: Congcong Cai (HerrCai0907)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/120774.diff
1 Files Affected:
- (modified) clang-tools-extra/docs/clang-tidy/checks/modernize/use-ranges.rst (+3)
``````````diff
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
-----------------
``````````
</details>
https://github.com/llvm/llvm-project/pull/120774
More information about the cfe-commits
mailing list