Skip to content

Commit 683bc94

Browse files
authored
[libc++] Officially remove _VSTD and _LIBCPP_INLINE_VISIBILITY (#79885)
Those were deprecated and basically not used anymore after we renamed them in batch. This patch removes the macros entirely.
1 parent 2acf302 commit 683bc94

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

libcxx/docs/ReleaseNotes/19.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ Deprecations and Removals
7070
- TODO: The ``_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES`` and ``_LIBCPP_ENABLE_CXX20_REMOVED_FEATURES`` macros have
7171
been removed in LLVM 19. C++17 and C++20 removed features can still be re-enabled individually.
7272

73-
- TODO: The macro ``_LIBCPP_INLINE_VISIBILITY`` has been removed in LLVM 19.
74-
75-
- TODO: The macro ``_VSTD`` has been removed in LLVM 19.
73+
- The ``_LIBCPP_INLINE_VISIBILITY`` and ``_VSTD`` macros have been removed in LLVM 19.
7674

7775

7876
Upcoming Deprecations and Removals

libcxx/include/__config

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -874,11 +874,6 @@ typedef __char32_t char32_t;
874874
# define _LIBCPP_HIDE_FROM_ABI_AFTER_V1 _LIBCPP_HIDE_FROM_ABI
875875
# endif
876876

877-
// TODO(LLVM-19): Remove _LIBCPP_INLINE_VISIBILITY and _VSTD, which we're keeping around
878-
// only to ease the renaming for downstreams.
879-
# define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
880-
# define _VSTD std
881-
882877
// Inline namespaces are available in Clang/GCC/MSVC regardless of C++ dialect.
883878
// clang-format off
884879
# define _LIBCPP_BEGIN_NAMESPACE_STD namespace _LIBCPP_TYPE_VISIBILITY_DEFAULT std { \

libcxx/include/__format/format_functions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ using wformat_args = basic_format_args<wformat_context>;
6767

6868
template <class _Context = format_context, class... _Args>
6969
_LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI __format_arg_store<_Context, _Args...> make_format_args(_Args&... __args) {
70-
return _VSTD::__format_arg_store<_Context, _Args...>(__args...);
70+
return std::__format_arg_store<_Context, _Args...>(__args...);
7171
}
7272

7373
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
7474
template <class... _Args>
7575
_LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI __format_arg_store<wformat_context, _Args...>
7676
make_wformat_args(_Args&... __args) {
77-
return _VSTD::__format_arg_store<wformat_context, _Args...>(__args...);
77+
return std::__format_arg_store<wformat_context, _Args...>(__args...);
7878
}
7979
# endif
8080

0 commit comments

Comments
 (0)