[libcxx-commits] [PATCH] D141326: [libc++] Introduce a compile-time mechanism to override __libcpp_verbose_abort

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 9 14:22:16 PST 2023


ldionne created this revision.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This changes the mechanism for verbose termination (again!) to make it
support compile-time customization in addition to link-time customization,
which is important for users who need fine-grained control over what code
gets generated around sites that call the verbose termination handler.

This concern had been raised to me both privately by prospecting users
and in https://llvm.org/D140944, so I think it is clearly worth fixing.

We still support _LIBCPP_AVAILABILITY_CUSTOM_VERBOSE_ABORT_PROVIDED for
a limited time since the same functionality can be achieved by overriding
the _LIBCPP_VERBOSE_ABORT macro.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141326

Files:
  libcxx/docs/ReleaseNotes.rst
  libcxx/docs/UsingLibcxx.rst
  libcxx/include/__assert
  libcxx/include/__availability
  libcxx/include/__verbose_abort
  libcxx/test/libcxx/assertions/customize_verbose_abort.backdeployment.pass.cpp
  libcxx/test/libcxx/assertions/customize_verbose_abort.compile-time.pass.cpp
  libcxx/test/libcxx/assertions/customize_verbose_abort.link-time.pass.cpp
  libcxx/test/libcxx/assertions/customize_verbose_abort.pass.cpp
  libcxx/test/libcxx/assertions/deprecated-link-time-custom-handler.pass.cpp
  libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141326.487555.patch
Type: text/x-patch
Size: 11952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230109/ffed7f3d/attachment.bin>


More information about the libcxx-commits mailing list