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 ----------------- _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits