[libcxx-commits] [libcxx] [libc++] Introduce unversioned namespace macros (PR #133009)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 26 07:58:57 PDT 2025
================
@@ -577,15 +577,17 @@ typedef __char32_t char32_t;
# define _LIBCPP_POP_EXTENSION_DIAGNOSTICS
# endif
-// Inline namespaces are available in Clang/GCC/MSVC regardless of C++ dialect.
// clang-format off
-# define _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS \
- namespace _LIBCPP_TYPE_VISIBILITY_DEFAULT std { \
- inline namespace _LIBCPP_ABI_NAMESPACE {
-# define _LIBCPP_END_NAMESPACE_STD }} _LIBCPP_POP_EXTENSION_DIAGNOSTICS
+# define _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD \
----------------
ldionne wrote:
I think this is a nice place to document the purpose of the unversioned namespace.
https://github.com/llvm/llvm-project/pull/133009
More information about the libcxx-commits
mailing list