llvm-project/libcxx/www
Eric Fiselier 687d3213f0 Implement a throwing version of _LIBCPP_ASSERT.
This patch implements changes to allow _LIBCPP_ASSERT to throw on failure
instead of aborting. The main changes needed to do this are:

1. Change _LIBCPP_ASSERT to call a handler via a replacable function pointer
   instead of calling abort directly. Additionally this patch implements two
   handler functions, one which aborts and another that throws an exception.

2. Add _NOEXCEPT_DEBUG macro for disabling noexcept spec on function which
   contain _LIBCPP_ASSERT. This is required in order to prevent assertion
   failures throwing through a noexcept function. This macro has no effect
   unless _LIBCPP_DEBUG_USE_EXCEPTIONS is defined.

Having a non-aborting _LIBCPP_ASSERT is very important to allow sane testing of
debug mode. Currently we can only have one test case per file, since the test
case will cause the program to abort. Testing debug mode this way would require
thousands of test files, most of which would be 95% boiler plate. I don't think
this is a feasible strategy. Fortunately using a throwing debug handler solves
these issues.

Additionally this patch rewrites the documentation for debug mode.

llvm-svn: 290651
2016-12-28 04:58:52 +00:00
..
atomic_design.html Update references to lists.llvm.org 2015-08-05 03:59:14 +00:00
atomic_design_a.html Update references to lists.llvm.org 2015-08-05 03:59:14 +00:00
atomic_design_b.html Update references to lists.llvm.org 2015-08-05 03:59:14 +00:00
atomic_design_c.html Update references to lists.llvm.org 2015-08-05 03:59:14 +00:00
content.css
cxx1y_status.html Implement LWG#2063, and update the issues links to point to the github generated pages 2015-10-05 16:17:34 +00:00
cxx1z_status.html Implement P0435R1 - Resolving LWG issues for common_type 2016-12-27 21:16:48 +00:00
index.html Implement a throwing version of _LIBCPP_ASSERT. 2016-12-28 04:58:52 +00:00
menu.css
ts1z_status.html Add Filesystem TS -- Complete 2016-06-17 19:46:40 +00:00
type_traits_design.html Update references to lists.llvm.org 2015-08-05 03:59:14 +00:00
upcoming_meeting.html Update LWG 2754 status 2016-10-16 03:52:48 +00:00