[libcxx-commits] [libcxx] [libc++][ranges] implement `ranges::shift_left` (PR #83231)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 27 23:54:57 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 267beb10f2812107734a1cd2172b46e928af76b7 e0800f119e62a03c9e1c2e494f98a758bf6a0312 -- libcxx/include/__algorithm/ranges_shift_left.h libcxx/include/__algorithm/shift_left.h libcxx/include/algorithm libcxx/modules/std/algorithm.inc libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp libcxx/test/std/library/description/conventions/customization.point.object/niebloid.compile.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp b/libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp
index c64945e349..92b224e427 100644
--- a/libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp
+++ b/libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp
@@ -155,7 +155,7 @@ constexpr void run_tests() {
   test(std::ranges::reverse, in);
   test_mid(std::ranges::rotate, in, mid);
 #if TEST_STD_VER >= 23
-    test(std::ranges::shift_left, in, count);
+  test(std::ranges::shift_left, in, count);
 #endif
   if (!std::is_constant_evaluated()) // `shuffle` isn't `constexpr`.
     test(std::ranges::shuffle, in, rand_gen());

``````````

</details>


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


More information about the libcxx-commits mailing list