Skip to content

Commit cc8d787

Browse files
committed
Run clang-format
1 parent 5c2cbf9 commit cc8d787

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

libcxx/include/__split_buffer

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ __split_buffer<_Tp, _Allocator>::__split_buffer(size_type __cap, size_type __sta
340340
__cap = __allocation.count;
341341
}
342342
__begin_ = __end_ = __first_ + __start;
343-
__cap_ = __first_ + __cap;
343+
__cap_ = __first_ + __cap;
344344
}
345345

346346
template <class _Tp, class _Allocator>
@@ -358,30 +358,30 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 __split_buffer<_Tp, _Allocator>::__split_buffer(__
358358
__end_(std::move(__c.__end_)),
359359
__cap_(std::move(__c.__cap_)),
360360
__alloc_(std::move(__c.__alloc_)) {
361-
__c.__first_ = nullptr;
362-
__c.__begin_ = nullptr;
363-
__c.__end_ = nullptr;
364-
__c.__cap_ = nullptr;
361+
__c.__first_ = nullptr;
362+
__c.__begin_ = nullptr;
363+
__c.__end_ = nullptr;
364+
__c.__cap_ = nullptr;
365365
}
366366

367367
template <class _Tp, class _Allocator>
368368
_LIBCPP_CONSTEXPR_SINCE_CXX20
369369
__split_buffer<_Tp, _Allocator>::__split_buffer(__split_buffer&& __c, const __alloc_rr& __a)
370370
: __cap_(nullptr), __alloc_(__a) {
371371
if (__a == __c.__alloc_) {
372-
__first_ = __c.__first_;
373-
__begin_ = __c.__begin_;
374-
__end_ = __c.__end_;
375-
__cap_ = __c.__cap_;
376-
__c.__first_ = nullptr;
377-
__c.__begin_ = nullptr;
378-
__c.__end_ = nullptr;
379-
__c.__cap_ = nullptr;
372+
__first_ = __c.__first_;
373+
__begin_ = __c.__begin_;
374+
__end_ = __c.__end_;
375+
__cap_ = __c.__cap_;
376+
__c.__first_ = nullptr;
377+
__c.__begin_ = nullptr;
378+
__c.__end_ = nullptr;
379+
__c.__cap_ = nullptr;
380380
} else {
381381
auto __allocation = std::__allocate_at_least(__alloc_, __c.size());
382382
__first_ = __allocation.ptr;
383383
__begin_ = __end_ = __first_;
384-
__cap_ = __first_ + __allocation.count;
384+
__cap_ = __first_ + __allocation.count;
385385
typedef move_iterator<iterator> _Ip;
386386
__construct_at_end(_Ip(__c.begin()), _Ip(__c.end()));
387387
}
@@ -395,10 +395,10 @@ __split_buffer<_Tp, _Allocator>::operator=(__split_buffer&& __c)
395395
!__alloc_traits::propagate_on_container_move_assignment::value) {
396396
clear();
397397
shrink_to_fit();
398-
__first_ = __c.__first_;
399-
__begin_ = __c.__begin_;
400-
__end_ = __c.__end_;
401-
__cap_ = __c.__cap_;
398+
__first_ = __c.__first_;
399+
__begin_ = __c.__begin_;
400+
__end_ = __c.__end_;
401+
__cap_ = __c.__cap_;
402402
__move_assign_alloc(__c, integral_constant<bool, __alloc_traits::propagate_on_container_move_assignment::value>());
403403
__c.__first_ = __c.__begin_ = __c.__end_ = __c.__cap_ = nullptr;
404404
return *this;

0 commit comments

Comments
 (0)