[libcxx-commits] [libcxx] WIP [libc++][hardening] Overhaul the termination mechanism for hardening (PR #77823)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 11 13:46:24 PST 2024
================
@@ -0,0 +1,23 @@
+// -*- C++ -*-
----------------
ldionne wrote:
Further discussion: Since we may want to have use cases where the "verbose trap handler" doesn't actually abort the program (effectively deciding to ignore library-level UB), it would probably make sense to rename this. Suggestions:
- `_LIBCPP_LIBRARY_UB_HANDLER(message)`
- `_LIBCPP_UB_HANDLER(message)`
- `_LIBCPP_ASSERTION_HANDLER(message)`
- `_LIBCPP_ASSERTION_FAILURE(message)`
There's probably more. The point is that if we use one of these names, using an implementation where don't actually terminate the program is now more natural.
https://github.com/llvm/llvm-project/pull/77823
More information about the libcxx-commits
mailing list