[libcxx-commits] [libcxx] 9233675 - [libc++] Rename __s1/__s2 to __dest/__source in __copy_constexpr. NFC.
Arthur O'Dwyer via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 21 05:36:54 PST 2021
Author: Arthur O'Dwyer
Date: 2021-12-21T08:36:44-05:00
New Revision: 923367546619e929814b6b02a9fa029dd4d45051
URL: https://github.com/llvm/llvm-project/commit/923367546619e929814b6b02a9fa029dd4d45051
DIFF: https://github.com/llvm/llvm-project/commit/923367546619e929814b6b02a9fa029dd4d45051.diff
LOG: [libc++] Rename __s1/__s2 to __dest/__source in __copy_constexpr. NFC.
This consistently completes the renaming started in D115986.
Added:
Modified:
libcxx/include/__string
Removed:
################################################################################
diff --git a/libcxx/include/__string b/libcxx/include/__string
index 728367bd1522..13ff7b35e47d 100644
--- a/libcxx/include/__string
+++ b/libcxx/include/__string
@@ -290,11 +290,11 @@ char_traits<_CharT>::assign(char_type* __s, size_t __n, char_type __a)
template <class _CharT>
static inline _LIBCPP_CONSTEXPR_AFTER_CXX17
-_CharT* __copy_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
+_CharT* __copy_constexpr(_CharT* __dest, const _CharT* __source, size_t __n) _NOEXCEPT
{
_LIBCPP_ASSERT(__libcpp_is_constant_evaluated(), "__copy_constexpr() should always be constant evaluated");
- _VSTD::copy_n(__s2, __n, __s1);
- return __s1;
+ _VSTD::copy_n(__source, __n, __dest);
+ return __dest;
}
template <class _CharT>
More information about the libcxx-commits
mailing list