diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-08-19 15:15:47 -0700 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-08-19 15:16:04 -0700 |
commit | 3583bf3ad8c5423cf5039911a4e0a699a788cd6d (patch) | |
tree | 42cf4736bab6f1f7d60f21978641cd1bc7740393 /libcxx/include/__format | |
parent | 46eded75cd238dc3747ca1667427b2f70493b547 (diff) | |
download | llvm-3583bf3ad8c5423cf5039911a4e0a699a788cd6d.zip llvm-3583bf3ad8c5423cf5039911a4e0a699a788cd6d.tar.gz llvm-3583bf3ad8c5423cf5039911a4e0a699a788cd6d.tar.bz2 |
[libc++] Make everything in namespace std have default type visibility and hidden visibility and remove _LIBCPP_ENUM_VIS
This avoids having to add `_LIBCPP_ENUM_VIS`, since that is handled through `type_visibility` and GCC always makes the visibility of enums default. It also fixes and missing `_LIBCPP_EXPORTED_FROM_ABI` on classes when using Clang.
Reviewed By: ldionne, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D153658
Diffstat (limited to 'libcxx/include/__format')
-rw-r--r-- | libcxx/include/__format/format_arg.h | 2 | ||||
-rw-r--r-- | libcxx/include/__format/parser_std_format_spec.h | 6 | ||||
-rw-r--r-- | libcxx/include/__format/write_escaped.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/__format/format_arg.h b/libcxx/include/__format/format_arg.h index 5cbfe81..ca06107 100644 --- a/libcxx/include/__format/format_arg.h +++ b/libcxx/include/__format/format_arg.h @@ -53,7 +53,7 @@ namespace __format { /// handle to satisfy the user observable behaviour. The internal function /// __visit_format_arg doesn't do this wrapping. So in the format functions /// this function is used to avoid unneeded overhead. -enum class _LIBCPP_ENUM_VIS __arg_t : uint8_t { +enum class __arg_t : uint8_t { __none, __boolean, __char_type, diff --git a/libcxx/include/__format/parser_std_format_spec.h b/libcxx/include/__format/parser_std_format_spec.h index c01e586..e79fc8f 100644 --- a/libcxx/include/__format/parser_std_format_spec.h +++ b/libcxx/include/__format/parser_std_format_spec.h @@ -176,7 +176,7 @@ inline constexpr __fields __fields_range{.__use_range_fill_ = true, .__clear_bra inline constexpr __fields __fields_fill_align_width{}; # endif -enum class _LIBCPP_ENUM_VIS __alignment : uint8_t { +enum class __alignment : uint8_t { /// No alignment is set in the format string. __default, __left, @@ -185,7 +185,7 @@ enum class _LIBCPP_ENUM_VIS __alignment : uint8_t { __zero_padding }; -enum class _LIBCPP_ENUM_VIS __sign : uint8_t { +enum class __sign : uint8_t { /// No sign is set in the format string. /// /// The sign isn't allowed for certain format-types. By using this value @@ -197,7 +197,7 @@ enum class _LIBCPP_ENUM_VIS __sign : uint8_t { __space }; -enum class _LIBCPP_ENUM_VIS __type : uint8_t { +enum class __type : uint8_t { __default = 0, __string, __binary_lower_case, diff --git a/libcxx/include/__format/write_escaped.h b/libcxx/include/__format/write_escaped.h index 8c51d0b..e415fc5 100644 --- a/libcxx/include/__format/write_escaped.h +++ b/libcxx/include/__format/write_escaped.h @@ -118,7 +118,7 @@ template <class _CharT> return static_cast<make_unsigned_t<_CharT>>(__value); } -enum class _LIBCPP_ENUM_VIS __escape_quotation_mark { __apostrophe, __double_quote }; +enum class __escape_quotation_mark { __apostrophe, __double_quote }; // [format.string.escaped]/2 template <class _CharT> |