Skip to content

Commit 08abdb1

Browse files
committed
Run clang-format
1 parent 52121af commit 08abdb1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

libcxx/include/__vector/vector.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,11 +1006,12 @@ vector<_Tp, _Allocator>::__assign_with_sentinel(_Iterator __first, _Sentinel __l
10061006
pointer __cur = __begin_;
10071007
for (; __first != __last && __cur != __end_; ++__first, (void)++__cur)
10081008
*__cur = *__first;
1009-
if (__cur != __end_)
1009+
if (__cur != __end_) {
10101010
__destruct_at_end(__cur);
1011-
else
1011+
} else {
10121012
for (; __first != __last; ++__first)
10131013
emplace_back(*__first);
1014+
}
10141015
}
10151016

10161017
template <class _Tp, class _Allocator>

libcxx/test/benchmarks/ContainerBenchmarks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ template <class Container,
6969
class GenInputs,
7070
typename std::enable_if<!std::is_trivial<typename Container::value_type>::value>::type* = nullptr>
7171
void BM_AssignInputIterIter(benchmark::State& st, Container c, GenInputs gen) {
72-
auto v = gen(1, 100);
72+
auto v = gen(1, 100);
7373
c.resize(st.range(0), v[0]);
7474
auto in = gen(st.range(1), 32);
7575
benchmark::DoNotOptimize(&in);

0 commit comments

Comments
 (0)