[libcxx-commits] [PATCH] D130507: [libc++] Generalize the customizeable assertion handler

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 25 11:47:19 PDT 2022


ldionne created this revision.
Herald added a subscriber: nemanjai.
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++.

Instead of taking a fixed set of arguments, use variadics so that
we can pass arbitrary arguments to the handler. This is the first
step towards using the handler to handle other non-assertion-related
failures, like std::unreachable and an exception being thrown in
-fno-exceptions mode, which would improve user experience by including
additional information in crashes (right now, we call abort() without
additional information).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130507

Files:
  libcxx/docs/UsingLibcxx.rst
  libcxx/include/__assert
  libcxx/lib/abi/CHANGELOG.TXT
  libcxx/lib/abi/arm64-apple-darwin.libcxxabi.v1.stable.exceptions.nonew.abilist
  libcxx/lib/abi/powerpc-ibm-aix.libcxxabi.v1.stable.exceptions.nonew.abilist
  libcxx/lib/abi/powerpc64-ibm-aix.libcxxabi.v1.stable.exceptions.nonew.abilist
  libcxx/lib/abi/x86_64-apple-darwin.libcxxabi.v1.stable.exceptions.nonew.abilist
  libcxx/lib/abi/x86_64-unknown-linux-gnu.libcxxabi.v1.stable.exceptions.nonew.abilist
  libcxx/lib/abi/x86_64-unknown-linux-gnu.libcxxabi.v1.stable.noexceptions.nonew.abilist
  libcxx/src/assert.cpp
  libcxx/test/libcxx/assertions/customize_handler.backdeployment.pass.cpp
  libcxx/test/libcxx/assertions/customize_handler.pass.cpp
  libcxx/test/libcxx/assertions/debug_mode_compatibility.pass.cpp
  libcxx/test/support/check_assertion.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130507.447422.patch
Type: text/x-patch
Size: 16481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220725/d061587f/attachment-0001.bin>


More information about the libcxx-commits mailing list