[libcxx-commits] [libcxx] fea30f2 - [NFC][libc++] Uses newer libc++ style.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 15 10:16:42 PDT 2023
Author: Mark de Wever
Date: 2023-03-15T18:16:13+01:00
New Revision: fea30f215c9752bba06a0303088484319db6c54b
URL: https://github.com/llvm/llvm-project/commit/fea30f215c9752bba06a0303088484319db6c54b
DIFF: https://github.com/llvm/llvm-project/commit/fea30f215c9752bba06a0303088484319db6c54b.diff
LOG: [NFC][libc++] Uses newer libc++ style.
Added:
Modified:
libcxx/include/__charconv/chars_format.h
Removed:
################################################################################
diff --git a/libcxx/include/__charconv/chars_format.h b/libcxx/include/__charconv/chars_format.h
index 0d7538e4f6cce..cd29de21364b3 100644
--- a/libcxx/include/__charconv/chars_format.h
+++ b/libcxx/include/__charconv/chars_format.h
@@ -29,42 +29,42 @@ enum class _LIBCPP_ENUM_VIS chars_format
general = fixed | scientific
};
-inline _LIBCPP_INLINE_VISIBILITY constexpr chars_format
+inline _LIBCPP_HIDE_FROM_ABI constexpr chars_format
operator~(chars_format __x) {
- return chars_format(~_VSTD::__to_underlying(__x));
+ return chars_format(~std::__to_underlying(__x));
}
-inline _LIBCPP_INLINE_VISIBILITY constexpr chars_format
+inline _LIBCPP_HIDE_FROM_ABI constexpr chars_format
operator&(chars_format __x, chars_format __y) {
- return chars_format(_VSTD::__to_underlying(__x) &
- _VSTD::__to_underlying(__y));
+ return chars_format(std::__to_underlying(__x) &
+ std::__to_underlying(__y));
}
-inline _LIBCPP_INLINE_VISIBILITY constexpr chars_format
+inline _LIBCPP_HIDE_FROM_ABI constexpr chars_format
operator|(chars_format __x, chars_format __y) {
- return chars_format(_VSTD::__to_underlying(__x) |
- _VSTD::__to_underlying(__y));
+ return chars_format(std::__to_underlying(__x) |
+ std::__to_underlying(__y));
}
-inline _LIBCPP_INLINE_VISIBILITY constexpr chars_format
+inline _LIBCPP_HIDE_FROM_ABI constexpr chars_format
operator^(chars_format __x, chars_format __y) {
- return chars_format(_VSTD::__to_underlying(__x) ^
- _VSTD::__to_underlying(__y));
+ return chars_format(std::__to_underlying(__x) ^
+ std::__to_underlying(__y));
}
-inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14 chars_format&
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 chars_format&
operator&=(chars_format& __x, chars_format __y) {
__x = __x & __y;
return __x;
}
-inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14 chars_format&
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 chars_format&
operator|=(chars_format& __x, chars_format __y) {
__x = __x | __y;
return __x;
}
-inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14 chars_format&
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 chars_format&
operator^=(chars_format& __x, chars_format __y) {
__x = __x ^ __y;
return __x;
More information about the libcxx-commits
mailing list