[libcxx-commits] [libcxx] [libc++][ranges][enumerate_view] Fix iterator converting constructor test (PR #212044)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 14 23:34:16 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/ctor.convert.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/ctor.convert.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/ctor.convert.pass.cpp
index d99ce46a8..27893a6bc 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/ctor.convert.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.enumerate/iterator/ctor.convert.pass.cpp
@@ -52,7 +52,7 @@ constexpr void test_SFINAE() {
   {
     std::ranges::enumerate_view v(NonSimpleCommon{buffer});
     auto iter1 = v.begin();
-    
+
     std::ranges::iterator_t<const decltype(v)> iter2 = iter1;
     assert(iter1 == iter2);
 
@@ -109,8 +109,8 @@ constexpr bool test() {
 
 int main(int, char**) {
   tests();
-test();
-static_assert(test());
+  test();
+  static_assert(test());
 
   return 0;
 }

``````````

</details>


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


More information about the libcxx-commits mailing list