Skip to content

Commit 878ad2b

Browse files
committed
lint
1 parent 57407c0 commit 878ad2b

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ set(files
737737
__ranges/transform_view.h
738738
__ranges/view_interface.h
739739
__ranges/views.h
740-
__ranges/zip_view.h
741740
__ranges/zip_transform_view.h
741+
__ranges/zip_view.h
742742
__split_buffer
743743
__std_mbstate_t.h
744744
__stop_token/atomic_unique_lock.h

libcxx/include/__ranges/zip_transform_view.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <__utility/forward.h>
4040
#include <__utility/in_place.h>
4141
#include <__utility/move.h>
42+
#include <tuple> // for std::apply
4243

4344
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
4445
# pragma GCC system_header

libcxx/test/std/ranges/range.adaptors/range.zip.transform/begin.pass.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ constexpr bool test() {
5050

5151
{
5252
// underlying const R is not a range
53-
using View = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
54-
static_assert(HasBegin<View>);
55-
static_assert(!HasConstBegin<View>);
53+
using ZTV = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
54+
static_assert(HasBegin<ZTV>);
55+
static_assert(!HasConstBegin<ZTV>);
5656
}
5757

5858
{
5959
// Fn cannot be invoked on const range
60-
using View = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
61-
static_assert(HasBegin<View>);
62-
static_assert(!HasConstBegin<View>);
60+
using ZTV = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
61+
static_assert(HasBegin<ZTV>);
62+
static_assert(!HasConstBegin<ZTV>);
6363
}
6464
return true;
6565
}

libcxx/test/std/ranges/range.adaptors/range.zip.transform/end.pass.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ constexpr bool test() {
7777

7878
{
7979
// underlying const R is not a range
80-
using View = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
81-
static_assert(HasEnd<View>);
82-
static_assert(!HasConstEnd<View>);
80+
using ZTV = std::ranges::zip_transform_view<MakeTuple, SimpleCommon, NoConstBeginView>;
81+
static_assert(HasEnd<ZTV>);
82+
static_assert(!HasConstEnd<ZTV>);
8383
}
8484

8585
{
8686
// Fn cannot invoke on const range
87-
using View = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
88-
static_assert(HasEnd<View>);
89-
static_assert(!HasConstEnd<View>);
87+
using ZTV = std::ranges::zip_transform_view<NonConstOnlyFn, ConstNonConstDifferentView>;
88+
static_assert(HasEnd<ZTV>);
89+
static_assert(!HasConstEnd<ZTV>);
9090
}
9191
return true;
9292
}

libcxx/test/std/ranges/range.adaptors/range.zip.transform/iterator/compare.pass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ constexpr bool test() {
102102
int buffer2[2] = {1, 2};
103103

104104
std::ranges::zip_transform_view v{MakeTuple{}, InputCommonView(buffer1), InputCommonView(buffer2)};
105-
using View = decltype(v);
106-
static_assert(!std::ranges::forward_range<View>);
107-
static_assert(std::ranges::input_range<View>);
108-
static_assert(std::ranges::common_range<View>);
105+
using ZTV = decltype(v);
106+
static_assert(!std::ranges::forward_range<ZTV>);
107+
static_assert(std::ranges::input_range<ZTV>);
108+
static_assert(std::ranges::common_range<ZTV>);
109109

110110
auto it1 = v.begin();
111111
auto it2 = v.end();

0 commit comments

Comments
 (0)