diff options
author | A. Jiang <de34@live.cn> | 2024-08-28 05:15:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 17:15:03 -0400 |
commit | 4ea2c73886c407d47215484ab6c983ac6189dd14 (patch) | |
tree | 63c3623cee29dc3acafe3e5890070af542ef8771 /libcxx/src | |
parent | fc517973c299d879f0795d37500a7db1f4d63588 (diff) | |
download | llvm-4ea2c73886c407d47215484ab6c983ac6189dd14.zip llvm-4ea2c73886c407d47215484ab6c983ac6189dd14.tar.gz llvm-4ea2c73886c407d47215484ab6c983ac6189dd14.tar.bz2 |
[libc++] Deprecate and remove std::uncaught_exception (#101830)
Works towards P0619R4/#99985.
- std::uncaught_exception was not previously deprecated. This patch
deprecates it since C++17 as per N4259. std::uncaught_exceptions is
used instead as libc++ unconditionally provides this function.
- _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION restores
std::uncaught_exception.
- As a drive-by, this patch updates the C++20 status page to
explain that D.11 is already done, since it was done in
578d09c1b195d859ca7e62840ff6bb83421a77b5.
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/exception.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp index ddb186b..ac6324c 100644 --- a/libcxx/src/exception.cpp +++ b/libcxx/src/exception.cpp @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#define _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION +#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS + #include <exception> #include <new> #include <typeinfo> |