diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2023-12-04 10:25:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 10:25:14 -0500 |
commit | 4c198542226223f6a5c5511a1f89b37d15ee10b9 (patch) | |
tree | e8a8e3add9ec6404cfc91db5cd7d2debefe34d00 /libcxx/include/__algorithm/replace.h | |
parent | c4b795df8075b111fc14cb5409f7138c32313a9b (diff) | |
download | llvm-4c198542226223f6a5c5511a1f89b37d15ee10b9.zip llvm-4c198542226223f6a5c5511a1f89b37d15ee10b9.tar.gz llvm-4c198542226223f6a5c5511a1f89b37d15ee10b9.tar.bz2 |
[libc++] Rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI (#74095)
In preparation for running clang-format on the whole code base, we are
also removing mentions of the legacy _LIBCPP_INLINE_VISIBILITY macro in
favor of the newer _LIBCPP_HIDE_FROM_ABI.
We're still leaving the definition of _LIBCPP_INLINE_VISIBILITY to avoid
creating needless breakage in case some older patches are checked-in
with mentions of the old macro. After we branch for LLVM 18, we can do
another pass to clean up remaining uses of the macro that might have
gotten introduced by mistake (if any) and remove the macro itself at the
same time. This is just a minor convenience to smooth out the transition
as much as possible.
See
https://discourse.llvm.org/t/rfc-clang-formatting-all-of-libc-once-and-for-all
for the clang-format proposal.
Diffstat (limited to 'libcxx/include/__algorithm/replace.h')
-rw-r--r-- | libcxx/include/__algorithm/replace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__algorithm/replace.h b/libcxx/include/__algorithm/replace.h index ce62150..09b1dac 100644 --- a/libcxx/include/__algorithm/replace.h +++ b/libcxx/include/__algorithm/replace.h @@ -18,7 +18,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD template <class _ForwardIterator, class _Tp> -inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX20 +inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void replace(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, const _Tp& __new_value) { |