[libcxx-commits] [libcxx] [libc++][ranges] LWG4096: `views::iota(views::iota(0))` should be rejected (PR #152855)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Aug 9 07:44:18 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- libcxx/test/std/ranges/range.factories/range.iota.view/views_iota.verify.cpp libcxx/include/__ranges/iota_view.h libcxx/test/std/ranges/range.factories/range.iota.view/views_iota.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/ranges/range.factories/range.iota.view/views_iota.pass.cpp b/libcxx/test/std/ranges/range.factories/range.iota.view/views_iota.pass.cpp
index a2e883f20..cdc873b7c 100644
--- a/libcxx/test/std/ranges/range.factories/range.iota.view/views_iota.pass.cpp
+++ b/libcxx/test/std/ranges/range.factories/range.iota.view/views_iota.pass.cpp
@@ -49,8 +49,7 @@ struct X {};
template <typename IntT>
concept CanDoubleWrap = requires(IntT i) { std::views::iota(std::views::iota(i)); };
-constexpr bool
-test() {
+constexpr bool test() {
testType<SomeInt>(SomeInt(10));
testType<SomeInt>(IntComparableWith(SomeInt(10)));
testType<signed long>(IntComparableWith<signed long>(10));
``````````
</details>
https://github.com/llvm/llvm-project/pull/152855
More information about the libcxx-commits
mailing list