Skip to content

Commit 95a3671

Browse files
committed
clang-format
1 parent b693549 commit 95a3671

File tree

2 files changed

+67
-32
lines changed

2 files changed

+67
-32
lines changed

libcxx/test/libcxx/type_traits/is_replaceable.compile.pass.cpp

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -133,37 +133,58 @@ static_assert(!std::__is_replaceable<CustomMoveAssignment>::value, "");
133133
// ----------------------
134134

135135
// __split_buffer
136-
static_assert(std::__is_replaceable<std::__split_buffer<int, std::allocator<int>, std::__split_buffer_pointer_layout> >::value, "");
137136
static_assert(
138-
std::__is_replaceable<std::__split_buffer<NotTriviallyCopyable, std::allocator<NotTriviallyCopyable>, std::__split_buffer_pointer_layout> >::value, "");
139-
static_assert(!std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatefulCopyAssignAlloc<int>,
140-
std::__split_buffer_pointer_layout > >::value,
141-
"");
142-
static_assert(!std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatefulMoveAssignAlloc<int>,
143-
std::__split_buffer_pointer_layout > >::value,
144-
"");
145-
static_assert(std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatelessCopyAssignAlloc<int>,
146-
std::__split_buffer_pointer_layout > >::value,
147-
"");
148-
static_assert(std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatelessMoveAssignAlloc<int>,
149-
std::__split_buffer_pointer_layout > >::value,
137+
std::__is_replaceable<std::__split_buffer<int, std::allocator<int>, std::__split_buffer_pointer_layout> >::value,
138+
"");
139+
static_assert(std::__is_replaceable<std::__split_buffer<NotTriviallyCopyable,
140+
std::allocator<NotTriviallyCopyable>,
141+
std::__split_buffer_pointer_layout> >::value,
150142
"");
143+
static_assert(
144+
!std::__is_replaceable<
145+
std::__split_buffer<int, NonPropagatingStatefulCopyAssignAlloc<int>, std::__split_buffer_pointer_layout > >::
146+
value,
147+
"");
148+
static_assert(
149+
!std::__is_replaceable<
150+
std::__split_buffer<int, NonPropagatingStatefulMoveAssignAlloc<int>, std::__split_buffer_pointer_layout > >::
151+
value,
152+
"");
153+
static_assert(
154+
std::__is_replaceable<
155+
std::__split_buffer<int, NonPropagatingStatelessCopyAssignAlloc<int>, std::__split_buffer_pointer_layout > >::
156+
value,
157+
"");
158+
static_assert(
159+
std::__is_replaceable<
160+
std::__split_buffer<int, NonPropagatingStatelessMoveAssignAlloc<int>, std::__split_buffer_pointer_layout > >::
161+
value,
162+
"");
151163

152-
static_assert(std::__is_replaceable<std::__split_buffer<int, std::allocator<int>, std::__split_buffer_size_layout> >::value, "");
153164
static_assert(
154-
std::__is_replaceable<std::__split_buffer<NotTriviallyCopyable, std::allocator<NotTriviallyCopyable>, std::__split_buffer_size_layout> >::value, "");
155-
static_assert(!std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatefulCopyAssignAlloc<int>,
156-
std::__split_buffer_size_layout > >::value,
157-
"");
158-
static_assert(!std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatefulMoveAssignAlloc<int>,
159-
std::__split_buffer_size_layout > >::value,
160-
"");
161-
static_assert(std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatelessCopyAssignAlloc<int>,
162-
std::__split_buffer_size_layout > >::value,
163-
"");
164-
static_assert(std::__is_replaceable<std::__split_buffer<int, NonPropagatingStatelessMoveAssignAlloc<int>,
165-
std::__split_buffer_size_layout > >::value,
165+
std::__is_replaceable<std::__split_buffer<int, std::allocator<int>, std::__split_buffer_size_layout> >::value, "");
166+
static_assert(std::__is_replaceable<std::__split_buffer<NotTriviallyCopyable,
167+
std::allocator<NotTriviallyCopyable>,
168+
std::__split_buffer_size_layout> >::value,
166169
"");
170+
static_assert(
171+
!std::__is_replaceable<
172+
std::__split_buffer<int, NonPropagatingStatefulCopyAssignAlloc<int>, std::__split_buffer_size_layout > >::value,
173+
"");
174+
static_assert(
175+
!std::__is_replaceable<
176+
std::__split_buffer<int, NonPropagatingStatefulMoveAssignAlloc<int>, std::__split_buffer_size_layout > >::value,
177+
"");
178+
static_assert(
179+
std::__is_replaceable<
180+
std::__split_buffer<int, NonPropagatingStatelessCopyAssignAlloc<int>, std::__split_buffer_size_layout > >::
181+
value,
182+
"");
183+
static_assert(
184+
std::__is_replaceable<
185+
std::__split_buffer<int, NonPropagatingStatelessMoveAssignAlloc<int>, std::__split_buffer_size_layout > >::
186+
value,
187+
"");
167188

168189
// standard library types
169190
// ----------------------

libcxx/test/libcxx/type_traits/is_trivially_relocatable.compile.pass.cpp

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,27 @@ static_assert(!std::__libcpp_is_trivially_relocatable<NonTrivialDestructor>::val
6868
// ----------------------
6969

7070
// __split_buffer
71-
static_assert(std::__libcpp_is_trivially_relocatable<std::__split_buffer<int, std::allocator<int>, std::__split_buffer_pointer_layout> >::value, "");
72-
static_assert(std::__libcpp_is_trivially_relocatable<std::__split_buffer<NotTriviallyCopyable, std::allocator<NotTriviallyCopyable>, std::__split_buffer_pointer_layout> >::value, "");
73-
static_assert(!std::__libcpp_is_trivially_relocatable<std::__split_buffer<int, test_allocator<int>, std::__split_buffer_pointer_layout > >::value, "");
71+
static_assert(std::__libcpp_is_trivially_relocatable<
72+
std::__split_buffer<int, std::allocator<int>, std::__split_buffer_pointer_layout> >::value,
73+
"");
74+
static_assert(std::__libcpp_is_trivially_relocatable<std::__split_buffer<NotTriviallyCopyable,
75+
std::allocator<NotTriviallyCopyable>,
76+
std::__split_buffer_pointer_layout> >::value,
77+
"");
78+
static_assert(!std::__libcpp_is_trivially_relocatable<
79+
std::__split_buffer<int, test_allocator<int>, std::__split_buffer_pointer_layout > >::value,
80+
"");
7481

75-
static_assert(std::__libcpp_is_trivially_relocatable<std::__split_buffer<int, std::allocator<int>, std::__split_buffer_size_layout> >::value, "");
76-
static_assert(std::__libcpp_is_trivially_relocatable<std::__split_buffer<NotTriviallyCopyable, std::allocator<NotTriviallyCopyable>, std::__split_buffer_size_layout> >::value, "");
77-
static_assert(!std::__libcpp_is_trivially_relocatable<std::__split_buffer<int, test_allocator<int>, std::__split_buffer_size_layout > >::value, "");
82+
static_assert(std::__libcpp_is_trivially_relocatable<
83+
std::__split_buffer<int, std::allocator<int>, std::__split_buffer_size_layout> >::value,
84+
"");
85+
static_assert(std::__libcpp_is_trivially_relocatable<std::__split_buffer<NotTriviallyCopyable,
86+
std::allocator<NotTriviallyCopyable>,
87+
std::__split_buffer_size_layout> >::value,
88+
"");
89+
static_assert(!std::__libcpp_is_trivially_relocatable<
90+
std::__split_buffer<int, test_allocator<int>, std::__split_buffer_size_layout > >::value,
91+
"");
7892

7993
// standard library types
8094
// ----------------------

0 commit comments

Comments
 (0)