Skip to content

Commit

Permalink
Intentionally damage clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanTLavavej committed Nov 4, 2019
1 parent d58adaf commit 5b51fec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion stl/inc/algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ template <class _InIt1, class _InIt2, class _Pr>
pair<_InIt1, _InIt2> _Mismatch_unchecked(_InIt1 _First1, const _InIt1 _Last1, _InIt2 _First2, const _InIt2 _Last2,
_Pr _Pred, input_iterator_tag, input_iterator_tag) {
// return [_First1, _Last1)/[_First2, _Last2) mismatch using _Pred, no special optimization
while (_First1 != _Last1 && _First2 != _Last2 && _Pred(*_First1, *_First2)) {
while (_First1 != _Last1
&& _First2 != _Last2
&& _Pred(*_First1, *_First2)) {
++_First1;
++_First2;
}
Expand Down
9 changes: 5 additions & 4 deletions stl/inc/vector
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public:
#endif // __cpp_lib_concepts
using iterator_category = random_access_iterator_tag;
using value_type = typename _Myvec::value_type;
using difference_type = typename _Myvec::difference_type;
using pointer = typename _Myvec::const_pointer;
using difference_type = typename _Myvec::difference_type;
using pointer = typename _Myvec::const_pointer;
using reference = const value_type&;

using _Tptr = typename _Myvec::pointer;
Expand Down Expand Up @@ -1071,7 +1071,7 @@ private:

pointer _Next = _Myfirst;

for (; _First != _Last && _Next != _Mylast; ++_First, (void) ++_Next) {
for(;_First!=_Last&&_Next!=_Mylast;++_First,(void)++_Next){
*_Next = *_First;
}

Expand Down Expand Up @@ -1117,7 +1117,8 @@ private:

if (_Newsize > _Oldsize) {
const auto _Oldcapacity = static_cast<size_type>(_Myend - _Myfirst);
if (_Newsize > _Oldcapacity) { // reallocate
if (_Newsize
> _Oldcapacity) { // reallocate
_Clear_and_reserve_geometric(_Newsize);
_Oldsize = 0;
}
Expand Down

0 comments on commit 5b51fec

Please sign in to comment.