[libcxx-commits] [libcxx] [libc++][ranges] LWG3564: `transform_view::iterator<true>::value_type` and `iterator_category` should use `const F&` (PR #91816)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 10 14:49:34 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 a427aa9346295fe7dd3be5955214d28c8be2ad4a 4c316128dba33eb0be5cd3ba51e1c6872d03cbf8 -- libcxx/include/__ranges/transform_view.h libcxx/test/std/ranges/range.adaptors/range.transform/iterator/types.pass.cpp libcxx/test/std/ranges/range.adaptors/range.transform/types.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/types.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/types.pass.cpp
index 17340467f8..607b748ac3 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/types.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/types.pass.cpp
@@ -72,7 +72,8 @@ constexpr bool test() {
using CTIter = std::ranges::iterator_t<const TView>;
static_assert(std::same_as<typename CTIter::iterator_concept, std::random_access_iterator_tag>);
- static_assert(std::same_as<typename CTIter::iterator_category, std::input_iterator_tag>); // Note: this is now input_iterator_tag.
+ static_assert(std::same_as<typename CTIter::iterator_category,
+ std::input_iterator_tag>); // Note: this is now input_iterator_tag.
static_assert(std::same_as<typename CTIter::value_type, int>);
static_assert(std::same_as<typename CTIter::difference_type, std::ptrdiff_t>);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/91816
More information about the libcxx-commits
mailing list