[all-commits] [llvm/llvm-project] 8abca1: [libc++] Introduce unversioned namespace macros (#...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Mar 27 03:34:59 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8abca171c3346eb7c889354d9b2288ad2b7e1504
https://github.com/llvm/llvm-project/commit/8abca171c3346eb7c889354d9b2288ad2b7e1504
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2025-03-27 (Thu, 27 Mar 2025)
Changed paths:
M libcxx/include/__config
M libcxx/include/__cstddef/byte.h
M libcxx/include/__exception/exception.h
M libcxx/include/__exception/exception_ptr.h
M libcxx/include/__exception/nested_exception.h
M libcxx/include/__exception/operations.h
M libcxx/include/__exception/terminate.h
M libcxx/include/__fwd/byte.h
M libcxx/include/__new/align_val_t.h
M libcxx/include/__new/destroying_delete_t.h
M libcxx/include/__new/exceptions.h
M libcxx/include/__new/new_handler.h
M libcxx/include/__new/nothrow_t.h
M libcxx/include/any
M libcxx/include/typeinfo
M libcxx/include/variant
Log Message:
-----------
[libc++] Introduce unversioned namespace macros (#133009)
We've started using `_LIBCPP_BEGIN_NAMESPACE_STD` and
`_LIBCPP_END_NAMESPACE_STD` for more than just the namespace for a while
now. For example, we're using it to add visibility annotations to types.
This works very well and avoids a bunch of annotations, but doesn't work
for the few places where we have an unversioned namespace. This adds
`_LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD` and
`_LIBCPP_END_UNVERSIONED_NAMESPACE_STD` to make it simpler to add new
annotations consistently across the library as well as making it more
explicit that the unversioned namespace is indeed intended.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list