[PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 14 03:47:53 PST 2015


rmaprath updated this revision to Diff 42701.
rmaprath added a comment.

Further refined the changes to `__config` header.

- Now there's only one `_LIBCPP_THROW` macro, which does the right thing depending on the availability of exceptions.
- Made `__libcxx_noexceptions_report` not take in the exception object as an argument. The only argument for this was that with the exception object, we can produce a better error message. But this has the downside that the caller will have to instantiate an exception object even in the no-exceptions mode. Since the `LIBCPP_THROW` macro now requires an explicit error message for the no-exception variant, there's really no need to fiddle with the exception object.


http://reviews.llvm.org/D14653

Files:
  include/__config
  include/array
  test/std/containers/sequences/array/at.pass.cpp
  test/support/noexcept.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14653.42701.patch
Type: text/x-patch
Size: 4244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151214/3b462242/attachment-0001.bin>


More information about the cfe-commits mailing list