[libcxx-commits] [libcxx] 1e1b570 - [libc++] Fix spacing in <vector>. NFCI.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 26 15:25:04 PDT 2021


Author: Arthur O'Dwyer
Date: 2021-07-26T18:23:50-04:00
New Revision: 1e1b5706c3f5e24b937878e592cf9907af368ec3

URL: https://github.com/llvm/llvm-project/commit/1e1b5706c3f5e24b937878e592cf9907af368ec3
DIFF: https://github.com/llvm/llvm-project/commit/1e1b5706c3f5e24b937878e592cf9907af368ec3.diff

LOG: [libc++] Fix spacing in <vector>. NFCI.

Thanks to gAlfonso-bit for the patch!

Differential Revision: https://reviews.llvm.org/D106691

Added: 
    

Modified: 
    libcxx/include/vector

Removed: 
    


################################################################################
diff  --git a/libcxx/include/vector b/libcxx/include/vector
index 52ddd45ffa86..9189ed44a80c 100644
--- a/libcxx/include/vector
+++ b/libcxx/include/vector
@@ -1029,7 +1029,7 @@ vector<_Tp, _Allocator>::__recommend(size_type __new_size) const
     const size_type __cap = capacity();
     if (__cap >= __ms / 2)
         return __ms;
-    return _VSTD::max<size_type>(2*__cap, __new_size);
+    return _VSTD::max<size_type>(2 * __cap, __new_size);
 }
 
 //  Default constructs __n objects starting at __end_
@@ -2575,7 +2575,7 @@ vector<bool, _Allocator>::__recommend(size_type __new_size) const
     const size_type __cap = capacity();
     if (__cap >= __ms / 2)
         return __ms;
-    return _VSTD::max(2*__cap, __align_it(__new_size));
+    return _VSTD::max(2 * __cap, __align_it(__new_size));
 }
 
 //  Default constructs __n objects starting at __end_


        


More information about the libcxx-commits mailing list