[libcxx-commits] [libcxx] [libc++] Introduce ABI sensitive areas to avoid requiring _LIBCPP_HIDE_FROM_ABI everywhere (PR #131156)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 7 07:48:39 PDT 2025
================
@@ -559,6 +559,18 @@ typedef __char32_t char32_t;
# endif
// clang-format off
+# define _LIBCPP_BEGIN_HIDE_FROM_ABI \
+ _LIBCPP_DIAGNOSTIC_PUSH \
+ _LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wpragma-clang-attribute") \
+ _LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wignored-attributes") \
+ _Pragma(_LIBCPP_TOSTRING(clang attribute _LibcxxHideFromABI.push(__attribute__(( \
----------------
ldionne wrote:
```suggestion
_Pragma(_LIBCPP_TOSTRING(clang attribute _LibcxxABIInsensitive.push(__attribute__(( \
```
https://github.com/llvm/llvm-project/pull/131156
More information about the libcxx-commits
mailing list