aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/iosfwd
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2023-12-04 10:25:14 -0500
committerGitHub <noreply@github.com>2023-12-04 10:25:14 -0500
commit4c198542226223f6a5c5511a1f89b37d15ee10b9 (patch)
treee8a8e3add9ec6404cfc91db5cd7d2debefe34d00 /libcxx/include/iosfwd
parentc4b795df8075b111fc14cb5409f7138c32313a9b (diff)
downloadllvm-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/iosfwd')
-rw-r--r--libcxx/include/iosfwd4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/iosfwd b/libcxx/include/iosfwd
index 80c0c27..48fe28e 100644
--- a/libcxx/include/iosfwd
+++ b/libcxx/include/iosfwd
@@ -179,13 +179,13 @@ class __save_flags
__save_flags(const __save_flags&);
__save_flags& operator=(const __save_flags&);
public:
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_HIDE_FROM_ABI
explicit __save_flags(__stream_type& __stream)
: __stream_(__stream),
__fmtflags_(__stream.flags()),
__fill_(__stream.fill())
{}
- _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_HIDE_FROM_ABI
~__save_flags()
{
__stream_.flags(__fmtflags_);