[libcxx-commits] [libcxx] [libc++][ranges] Implement LWG4054 `Repeating a repeat_view should repeat the view` (PR #88606)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 15 07:01:50 PDT 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 d488b2225d484027eb2c21a06d27decf008e878b 6f50618054bc7a03dc8ddde2e4b5ca6b2ed8b749 -- libcxx/include/__ranges/repeat_view.h libcxx/test/std/ranges/range.factories/range.repeat.view/views_repeat.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/ranges/range.factories/range.repeat.view/views_repeat.pass.cpp b/libcxx/test/std/ranges/range.factories/range.repeat.view/views_repeat.pass.cpp
index 10086fb454..5d913fa197 100644
--- a/libcxx/test/std/ranges/range.factories/range.repeat.view/views_repeat.pass.cpp
+++ b/libcxx/test/std/ranges/range.factories/range.repeat.view/views_repeat.pass.cpp
@@ -64,7 +64,7 @@ static_assert(std::is_invocable_v<decltype(std::views::repeat), MoveOnly>);
static_assert(std::is_same_v<decltype(std::views::repeat(std::views::repeat(42))),
std::ranges::repeat_view<std::ranges::repeat_view<int>>>);
-// These cases are from LWG4053, but they are actually covered by the resolution of LWG4054,
+// These cases are from LWG4053, but they are actually covered by the resolution of LWG4054,
// and the resolution of LWG4053 only affects CTAD.
using RPV = std::ranges::repeat_view<const char*>;
static_assert(std::same_as<decltype(std::views::repeat("foo", std::unreachable_sentinel)), RPV>); // OK
``````````
</details>
https://github.com/llvm/llvm-project/pull/88606
More information about the libcxx-commits
mailing list