[libcxx-commits] [libcxx] [libc++] Optimize ranges::copy_backward for vector<bool>::iterator (PR #121026)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 23 21:44:23 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 8db73270e06a7925411870afa3953dafe997a35e 0093747b3eca43e3b90f7c0aa3f287b159d5ee97 --extensions ,cpp,h -- libcxx/test/benchmarks/algorithms/copy_backward.bench.cpp libcxx/include/__algorithm/copy_backward.h libcxx/include/__bit_reference libcxx/include/bitset libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy_backward.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/bitset b/libcxx/include/bitset
index 469abf9f39..bb09bc5415 100644
--- a/libcxx/include/bitset
+++ b/libcxx/include/bitset
@@ -129,9 +129,9 @@ template <size_t N> struct hash<std::bitset<N>>;
#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
# include <__cxx03/bitset>
#else
-# include <__algorithm/count.h>
# include <__algorithm/copy.h>
# include <__algorithm/copy_backward.h>
+# include <__algorithm/count.h>
# include <__algorithm/fill.h>
# include <__algorithm/fill_n.h>
# include <__algorithm/find.h>
``````````
</details>
https://github.com/llvm/llvm-project/pull/121026
More information about the libcxx-commits
mailing list