[libcxx-commits] [libcxx] [libc++][test] Refactor tests for ranges::swap_range algorithms (PR #121138)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 25 21:11: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 70965ef259a161a6e9ccfb8bd841dd2246c56c37 21520db5c7327a9a9cb5833303c7d4dbb155940b --extensions cpp -- libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/iter_swap.pass.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/ranges.swap_ranges.pass.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/swap_ranges.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/swap_ranges.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/swap_ranges.pass.cpp
index 5616305fed..9e438e3501 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/swap_ranges.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/swap_ranges.pass.cpp
@@ -51,7 +51,7 @@ struct Test2 {
std::unique_ptr<int> a[3];
for (int k = 0; k < 3; ++k)
a[k].reset(new int(k + 1));
- std::unique_ptr<int> b[3] {};
+ std::unique_ptr<int> b[3]{};
for (int k = 0; k < 3; ++k)
b[k].reset(new int(k + 4));
Iter2 r = std::swap_ranges(Iter1(a), Iter1(a + 3), Iter2(b));
``````````
</details>
https://github.com/llvm/llvm-project/pull/121138
More information about the libcxx-commits
mailing list