Skip to content

Commit 4f05ded

Browse files
committed
git clang-format on the last batch of changes
1 parent 2af9a6f commit 4f05ded

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

libcxx/benchmarks/algorithms/set_intersection.bench.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ std::vector<T> getVectorOfRandom(size_t N) {
9797
template <class Container>
9898
std::pair<Container, Container> genCacheUnfriendlyData(size_t size1, size_t size2, OverlapPosition pos) {
9999
using ValueType = typename Container::value_type;
100-
auto move_into = [](auto first, auto last) {
101-
Container out;
102-
std::move(first, last, std::inserter(out, out.begin()));
103-
return out;
100+
auto move_into = [](auto first, auto last) {
101+
Container out;
102+
std::move(first, last, std::inserter(out, out.begin()));
103+
return out;
104104
};
105105
const auto src_size = pos == OverlapPosition::None ? size1 + size2 : std::max(size1, size2);
106106
std::vector<ValueType> src = getVectorOfRandom<ValueType>(src_size);

libcxx/include/__algorithm/iterator_operations.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ struct _IterOps<_ClassicAlgPolicy> {
9898
private:
9999
// advance with sentinel, a la std::ranges::advance -- InputIterator specialization
100100
template <class _InputIter>
101-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 static __difference_type<_InputIter>
102-
__advance_to(_InputIter& __iter, __difference_type<_InputIter> __count, const _InputIter& __sentinel, input_iterator_tag) {
101+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 static __difference_type<_InputIter> __advance_to(
102+
_InputIter& __iter, __difference_type<_InputIter> __count, const _InputIter& __sentinel, input_iterator_tag) {
103103
__difference_type<_InputIter> __dist = 0;
104104
for (; __dist < __count && __iter != __sentinel; ++__dist)
105105
++__iter;
@@ -109,7 +109,10 @@ struct _IterOps<_ClassicAlgPolicy> {
109109
// advance with sentinel, a la std::ranges::advance -- BidirectionalIterator specialization
110110
template <class _BiDirIter>
111111
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 static __difference_type<_BiDirIter>
112-
__advance_to(_BiDirIter& __iter, __difference_type<_BiDirIter> __count, const _BiDirIter& __sentinel, bidirectional_iterator_tag) {
112+
__advance_to(_BiDirIter& __iter,
113+
__difference_type<_BiDirIter> __count,
114+
const _BiDirIter& __sentinel,
115+
bidirectional_iterator_tag) {
113116
__difference_type<_BiDirIter> __dist = 0;
114117
if (__count >= 0)
115118
for (; __dist < __count && __iter != __sentinel; ++__dist)
@@ -123,7 +126,10 @@ struct _IterOps<_ClassicAlgPolicy> {
123126
// advance with sentinel, a la std::ranges::advance -- RandomIterator specialization
124127
template <class _RandIter>
125128
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 static __difference_type<_RandIter>
126-
__advance_to(_RandIter& __iter, __difference_type<_RandIter> __count, const _RandIter& __sentinel, random_access_iterator_tag) {
129+
__advance_to(_RandIter& __iter,
130+
__difference_type<_RandIter> __count,
131+
const _RandIter& __sentinel,
132+
random_access_iterator_tag) {
127133
auto __dist = _IterOps::distance(__iter, __sentinel);
128134
_LIBCPP_ASSERT_VALID_INPUT_RANGE(
129135
__count == 0 || (__dist < 0) == (__count < 0), "__sentinel must precede __iter when __count < 0");

0 commit comments

Comments
 (0)