[libcxx-commits] [libcxx] c5e7981 - [libc++] Add missing space in (__map_value_compare&__y) etc. NFCI.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 31 11:30:32 PDT 2021


Author: Arthur O'Dwyer
Date: 2021-08-31T14:30:20-04:00
New Revision: c5e7981aec37dd0bc5c893158c1a703b1b1de6d1

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

LOG: [libc++] Add missing space in (__map_value_compare&__y) etc. NFCI.

Added: 
    

Modified: 
    libcxx/include/__memory/pointer_traits.h
    libcxx/include/map
    libcxx/include/unordered_map

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__memory/pointer_traits.h b/libcxx/include/__memory/pointer_traits.h
index 00484b50d0a9b..b356092f32533 100644
--- a/libcxx/include/__memory/pointer_traits.h
+++ b/libcxx/include/__memory/pointer_traits.h
@@ -184,7 +184,7 @@ template <class _Pointer, class>
 struct __to_address_helper {
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
     static decltype(_VSTD::__to_address(declval<const _Pointer&>().operator->()))
-    __call(const _Pointer&__p) _NOEXCEPT {
+    __call(const _Pointer& __p) _NOEXCEPT {
         return _VSTD::__to_address(__p.operator->());
     }
 };
@@ -193,7 +193,7 @@ template <class _Pointer>
 struct __to_address_helper<_Pointer, decltype((void)pointer_traits<_Pointer>::to_address(declval<const _Pointer&>()))> {
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR
     static decltype(pointer_traits<_Pointer>::to_address(declval<const _Pointer&>()))
-    __call(const _Pointer&__p) _NOEXCEPT {
+    __call(const _Pointer& __p) _NOEXCEPT {
         return pointer_traits<_Pointer>::to_address(__p);
     }
 };

diff  --git a/libcxx/include/map b/libcxx/include/map
index 3c2b6ff5eb8d2..1ffb5a0fd121e 100644
--- a/libcxx/include/map
+++ b/libcxx/include/map
@@ -535,7 +535,7 @@ public:
     _LIBCPP_INLINE_VISIBILITY
     bool operator()(const _Key& __x, const _CP& __y) const
         {return static_cast<const _Compare&>(*this)(__x, __y.__get_value().first);}
-    void swap(__map_value_compare&__y)
+    void swap(__map_value_compare& __y)
         _NOEXCEPT_(__is_nothrow_swappable<_Compare>::value)
     {
       using _VSTD::swap;
@@ -583,7 +583,7 @@ public:
     _LIBCPP_INLINE_VISIBILITY
     bool operator()(const _Key& __x, const _CP& __y) const
         {return comp(__x, __y.__get_value().first);}
-    void swap(__map_value_compare&__y)
+    void swap(__map_value_compare& __y)
         _NOEXCEPT_(__is_nothrow_swappable<_Compare>::value)
     {
         using _VSTD::swap;

diff  --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map
index a0c1c55e4c715..969e67395dce0 100644
--- a/libcxx/include/unordered_map
+++ b/libcxx/include/unordered_map
@@ -478,7 +478,7 @@ public:
     size_t operator()(const _K2& __x) const
         {return static_cast<const _Hash&>(*this)(__x);}
 #endif
-    void swap(__unordered_map_hasher&__y)
+    void swap(__unordered_map_hasher& __y)
         _NOEXCEPT_(__is_nothrow_swappable<_Hash>::value)
     {
         using _VSTD::swap;
@@ -513,7 +513,7 @@ public:
     size_t operator()(const _K2& __x) const
         {return __hash_(__x);}
 #endif
-    void swap(__unordered_map_hasher&__y)
+    void swap(__unordered_map_hasher& __y)
         _NOEXCEPT_(__is_nothrow_swappable<_Hash>::value)
     {
         using _VSTD::swap;
@@ -574,7 +574,7 @@ public:
     bool operator()(const _K2& __x, const _Key& __y) const
         {return static_cast<const _Pred&>(*this)(__x, __y);}
 #endif
-    void swap(__unordered_map_equal&__y)
+    void swap(__unordered_map_equal& __y)
         _NOEXCEPT_(__is_nothrow_swappable<_Pred>::value)
     {
         using _VSTD::swap;
@@ -624,7 +624,7 @@ public:
     bool operator()(const _K2& __x, const _Key& __y) const
         {return __pred_(__x, __y);}
 #endif
-    void swap(__unordered_map_equal&__y)
+    void swap(__unordered_map_equal& __y)
         _NOEXCEPT_(__is_nothrow_swappable<_Pred>::value)
     {
         using _VSTD::swap;


        


More information about the libcxx-commits mailing list