mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-04 08:27:50 +00:00
[libcxx] Replace remaining _LIBCPP_INLINE_VISIBILITY in __support
Replace remaining _LIBCPP_INLINE_VISIBILITY in __support with _LIBCPP_HIDE_FROM_ABI. Reviewed by: Mordante Differential Revision: https://reviews.llvm.org/D129922
This commit is contained in:
parent
52232abc23
commit
21ef59a55e
@ -46,18 +46,18 @@ extern "C" {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY float strtof_l(const char* __nptr, char** __endptr,
|
inline _LIBCPP_HIDE_FROM_ABI float
|
||||||
locale_t) {
|
strtof_l(const char* __nptr, char** __endptr, locale_t) {
|
||||||
return ::strtof(__nptr, __endptr);
|
return ::strtof(__nptr, __endptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY double strtod_l(const char* __nptr,
|
inline _LIBCPP_HIDE_FROM_ABI double
|
||||||
char** __endptr, locale_t) {
|
strtod_l(const char* __nptr, char** __endptr, locale_t) {
|
||||||
return ::strtod(__nptr, __endptr);
|
return ::strtod(__nptr, __endptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY long strtol_l(const char* __nptr, char** __endptr,
|
inline _LIBCPP_HIDE_FROM_ABI long
|
||||||
int __base, locale_t) {
|
strtol_l(const char* __nptr, char** __endptr, int __base, locale_t) {
|
||||||
return ::strtol(__nptr, __endptr, __base);
|
return ::strtol(__nptr, __endptr, __base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,15 +223,13 @@ decltype(MB_CUR_MAX) MB_CUR_MAX_L( locale_t __l );
|
|||||||
_LIBCPP_FUNC_VIS float strtof_l(const char*, char**, locale_t);
|
_LIBCPP_FUNC_VIS float strtof_l(const char*, char**, locale_t);
|
||||||
_LIBCPP_FUNC_VIS long double strtold_l(const char*, char**, locale_t);
|
_LIBCPP_FUNC_VIS long double strtold_l(const char*, char**, locale_t);
|
||||||
#endif
|
#endif
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_HIDE_FROM_ABI int
|
||||||
int
|
|
||||||
islower_l(int __c, _locale_t __loc)
|
islower_l(int __c, _locale_t __loc)
|
||||||
{
|
{
|
||||||
return _islower_l((int)__c, __loc);
|
return _islower_l((int)__c, __loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY
|
inline _LIBCPP_HIDE_FROM_ABI int
|
||||||
int
|
|
||||||
isupper_l(int __c, _locale_t __loc)
|
isupper_l(int __c, _locale_t __loc)
|
||||||
{
|
{
|
||||||
return _isupper_l((int)__c, __loc);
|
return _isupper_l((int)__c, __loc);
|
||||||
|
@ -19,141 +19,141 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isalnum_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isalnum_l(int __c, locale_t) {
|
||||||
return ::isalnum(__c);
|
return ::isalnum(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isalpha_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isalpha_l(int __c, locale_t) {
|
||||||
return ::isalpha(__c);
|
return ::isalpha(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isblank_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isblank_l(int __c, locale_t) {
|
||||||
return ::isblank(__c);
|
return ::isblank(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iscntrl_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iscntrl_l(int __c, locale_t) {
|
||||||
return ::iscntrl(__c);
|
return ::iscntrl(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isdigit_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isdigit_l(int __c, locale_t) {
|
||||||
return ::isdigit(__c);
|
return ::isdigit(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isgraph_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isgraph_l(int __c, locale_t) {
|
||||||
return ::isgraph(__c);
|
return ::isgraph(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int islower_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int islower_l(int __c, locale_t) {
|
||||||
return ::islower(__c);
|
return ::islower(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isprint_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isprint_l(int __c, locale_t) {
|
||||||
return ::isprint(__c);
|
return ::isprint(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int ispunct_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int ispunct_l(int __c, locale_t) {
|
||||||
return ::ispunct(__c);
|
return ::ispunct(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isspace_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isspace_l(int __c, locale_t) {
|
||||||
return ::isspace(__c);
|
return ::isspace(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isupper_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isupper_l(int __c, locale_t) {
|
||||||
return ::isupper(__c);
|
return ::isupper(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int isxdigit_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int isxdigit_l(int __c, locale_t) {
|
||||||
return ::isxdigit(__c);
|
return ::isxdigit(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswalnum_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswalnum_l(wint_t __c, locale_t) {
|
||||||
return ::iswalnum(__c);
|
return ::iswalnum(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswalpha_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswalpha_l(wint_t __c, locale_t) {
|
||||||
return ::iswalpha(__c);
|
return ::iswalpha(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswblank_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswblank_l(wint_t __c, locale_t) {
|
||||||
return ::iswblank(__c);
|
return ::iswblank(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswcntrl_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswcntrl_l(wint_t __c, locale_t) {
|
||||||
return ::iswcntrl(__c);
|
return ::iswcntrl(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswdigit_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswdigit_l(wint_t __c, locale_t) {
|
||||||
return ::iswdigit(__c);
|
return ::iswdigit(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswgraph_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswgraph_l(wint_t __c, locale_t) {
|
||||||
return ::iswgraph(__c);
|
return ::iswgraph(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswlower_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswlower_l(wint_t __c, locale_t) {
|
||||||
return ::iswlower(__c);
|
return ::iswlower(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswprint_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswprint_l(wint_t __c, locale_t) {
|
||||||
return ::iswprint(__c);
|
return ::iswprint(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswpunct_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswpunct_l(wint_t __c, locale_t) {
|
||||||
return ::iswpunct(__c);
|
return ::iswpunct(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswspace_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswspace_l(wint_t __c, locale_t) {
|
||||||
return ::iswspace(__c);
|
return ::iswspace(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswupper_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswupper_l(wint_t __c, locale_t) {
|
||||||
return ::iswupper(__c);
|
return ::iswupper(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int iswxdigit_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int iswxdigit_l(wint_t __c, locale_t) {
|
||||||
return ::iswxdigit(__c);
|
return ::iswxdigit(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int toupper_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int toupper_l(int __c, locale_t) {
|
||||||
return ::toupper(__c);
|
return ::toupper(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int tolower_l(int __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI int tolower_l(int __c, locale_t) {
|
||||||
return ::tolower(__c);
|
return ::tolower(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY wint_t towupper_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI wint_t towupper_l(wint_t __c, locale_t) {
|
||||||
return ::towupper(__c);
|
return ::towupper(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY wint_t towlower_l(wint_t __c, locale_t) {
|
inline _LIBCPP_HIDE_FROM_ABI wint_t towlower_l(wint_t __c, locale_t) {
|
||||||
return ::towlower(__c);
|
return ::towlower(__c);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int strcoll_l(const char *__s1, const char *__s2,
|
inline _LIBCPP_HIDE_FROM_ABI int
|
||||||
locale_t) {
|
strcoll_l(const char *__s1, const char *__s2, locale_t) {
|
||||||
return ::strcoll(__s1, __s2);
|
return ::strcoll(__s1, __s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY size_t strxfrm_l(char *__dest, const char *__src,
|
inline _LIBCPP_HIDE_FROM_ABI size_t
|
||||||
size_t __n, locale_t) {
|
strxfrm_l(char *__dest, const char *__src, size_t __n, locale_t) {
|
||||||
return ::strxfrm(__dest, __src, __n);
|
return ::strxfrm(__dest, __src, __n);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY size_t strftime_l(char *__s, size_t __max,
|
inline _LIBCPP_HIDE_FROM_ABI size_t
|
||||||
const char *__format,
|
strftime_l(char *__s, size_t __max, const char *__format, const struct tm *__tm,
|
||||||
const struct tm *__tm, locale_t) {
|
locale_t) {
|
||||||
return ::strftime(__s, __max, __format, __tm);
|
return ::strftime(__s, __max, __format, __tm);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY int wcscoll_l(const wchar_t *__ws1,
|
inline _LIBCPP_HIDE_FROM_ABI int
|
||||||
const wchar_t *__ws2, locale_t) {
|
wcscoll_l(const wchar_t *__ws1, const wchar_t *__ws2, locale_t) {
|
||||||
return ::wcscoll(__ws1, __ws2);
|
return ::wcscoll(__ws1, __ws2);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY size_t wcsxfrm_l(wchar_t *__dest, const wchar_t *__src,
|
inline _LIBCPP_HIDE_FROM_ABI size_t
|
||||||
size_t __n, locale_t) {
|
wcsxfrm_l(wchar_t *__dest, const wchar_t *__src, size_t __n, locale_t) {
|
||||||
return ::wcsxfrm(__dest, __src, __n);
|
return ::wcsxfrm(__dest, __src, __n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,43 +19,43 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY float strtof_l(const char *__nptr,
|
inline _LIBCPP_HIDE_FROM_ABI int float
|
||||||
char **__endptr, locale_t) {
|
strtof_l(const char *__nptr, char **__endptr, locale_t) {
|
||||||
return ::strtof(__nptr, __endptr);
|
return ::strtof(__nptr, __endptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY double strtod_l(const char *__nptr,
|
inline _LIBCPP_HIDE_FROM_ABI int double
|
||||||
char **__endptr, locale_t) {
|
strtod_l(const char *__nptr, char **__endptr, locale_t) {
|
||||||
return ::strtod(__nptr, __endptr);
|
return ::strtod(__nptr, __endptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY long double strtold_l(const char *__nptr,
|
inline _LIBCPP_HIDE_FROM_ABI int long double
|
||||||
char **__endptr, locale_t) {
|
strtold_l(const char *__nptr, char **__endptr, locale_t) {
|
||||||
return ::strtold(__nptr, __endptr);
|
return ::strtold(__nptr, __endptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY long long
|
inline _LIBCPP_HIDE_FROM_ABI int long long
|
||||||
strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t) {
|
strtoll_l(const char *__nptr, char **__endptr, int __base, locale_t) {
|
||||||
return ::strtoll(__nptr, __endptr, __base);
|
return ::strtoll(__nptr, __endptr, __base);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY unsigned long long
|
inline _LIBCPP_HIDE_FROM_ABI int unsigned long long
|
||||||
strtoull_l(const char *__nptr, char **__endptr, int __base, locale_t) {
|
strtoull_l(const char *__nptr, char **__endptr, int __base, locale_t) {
|
||||||
return ::strtoull(__nptr, __endptr, __base);
|
return ::strtoull(__nptr, __endptr, __base);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY long long
|
inline _LIBCPP_HIDE_FROM_ABI int long long
|
||||||
wcstoll_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
|
wcstoll_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
|
||||||
return ::wcstoll(__nptr, __endptr, __base);
|
return ::wcstoll(__nptr, __endptr, __base);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY unsigned long long
|
inline _LIBCPP_HIDE_FROM_ABI int unsigned long long
|
||||||
wcstoull_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
|
wcstoull_l(const wchar_t *__nptr, wchar_t **__endptr, int __base, locale_t) {
|
||||||
return ::wcstoull(__nptr, __endptr, __base);
|
return ::wcstoull(__nptr, __endptr, __base);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline _LIBCPP_INLINE_VISIBILITY long double wcstold_l(const wchar_t *__nptr,
|
inline _LIBCPP_HIDE_FROM_ABI int long double
|
||||||
wchar_t **__endptr, locale_t) {
|
wcstold_l(const wchar_t *__nptr, wchar_t **__endptr, locale_t) {
|
||||||
return ::wcstold(__nptr, __endptr);
|
return ::wcstold(__nptr, __endptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user