[libcxx-commits] [PATCH] D129949: [libcxx] Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in __support/xlocale/__nop_locale_mgmt.h header

Brad Smith via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 16 19:30:26 PDT 2022


brad created this revision.
brad added reviewers: ldionne, Mordante, libc++.
brad added a project: libc++.
Herald added a project: All.
brad requested review of this revision.
Herald added 1 blocking reviewer(s): libc++.

Remove static inline and make use of _LIBCPP_HIDE_FROM_ABI in the __support/xlocale/__nop_locale_mgmt.h header.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129949

Files:
  libcxx/include/__support/xlocale/__nop_locale_mgmt.h


Index: libcxx/include/__support/xlocale/__nop_locale_mgmt.h
===================================================================
--- libcxx/include/__support/xlocale/__nop_locale_mgmt.h
+++ libcxx/include/__support/xlocale/__nop_locale_mgmt.h
@@ -16,18 +16,23 @@
 
 // Patch over lack of extended locale support
 typedef void *locale_t;
-static inline locale_t duplocale(locale_t) {
+
+inline _LIBCPP_HIDE_FROM_ABI locale_t
+duplocale(locale_t) {
   return NULL;
 }
 
-static inline void freelocale(locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI void
+freelocale(locale_t) {
 }
 
-static inline locale_t newlocale(int, const char *, locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI locale_t
+newlocale(int, const char *, locale_t) {
   return NULL;
 }
 
-static inline locale_t uselocale(locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI locale_t
+uselocale(locale_t) {
   return NULL;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129949.445280.patch
Type: text/x-patch
Size: 870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220717/61fea8e4/attachment.bin>


More information about the libcxx-commits mailing list