[libcxx-commits] [libcxx] [libc++][ranges][enumerate_view] Fix iterator `iter_move` test (PR #219474)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 28 06:41:04 PDT 2026
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 origin/main HEAD --extensions cpp -- libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/iter_move.pass.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/iter_move.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/iter_move.pass.cpp
index 2a9b46271..52ef63407 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/iter_move.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/iter_move.pass.cpp
@@ -64,7 +64,8 @@ constexpr void test() {
{
// !is_nothrow_move_constructible_v<range_rvalue_reference_t<Base>>
// underlying iter_move may throw
- auto throwingMoveRange = std::views::iota(0, 9) | std::views::transform([](auto) noexcept { return ThrowingMove{}; });
+ auto throwingMoveRange =
+ std::views::iota(0, 9) | std::views::transform([](auto) noexcept { return ThrowingMove{}; });
std::ranges::enumerate_view v(throwingMoveRange);
auto it = v.begin();
static_assert(!noexcept(std::ranges::iter_move(it)));
``````````
</details>
https://github.com/llvm/llvm-project/pull/219474
More information about the libcxx-commits
mailing list