diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2021-03-01 20:09:45 +0300 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2021-03-03 20:57:31 +0300 |
commit | 5601305fb30bf585c397e62d2d3a8a712e47d70b (patch) | |
tree | 5bedca37e89c6c056982c10bb9dffab26bb2bf4c /libcxxabi/src/stdlib_exception.cpp | |
parent | 497b7b8c00fce1a009df0e59407f468012efdc29 (diff) |
[libc++/abi] Replace uses of _NOEXCEPT in src/ by noexcept
We always build the libraries in a Standard mode that supports noexcept,
so there's no need to use the _NOEXCEPT macro.
Differential Revision: https://reviews.llvm.org/D97700
Diffstat (limited to 'libcxxabi/src/stdlib_exception.cpp')
-rw-r--r-- | libcxxabi/src/stdlib_exception.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libcxxabi/src/stdlib_exception.cpp b/libcxxabi/src/stdlib_exception.cpp index b0cc431f2415..5f9e643548b6 100644 --- a/libcxxabi/src/stdlib_exception.cpp +++ b/libcxxabi/src/stdlib_exception.cpp @@ -14,22 +14,22 @@ namespace std // exception -exception::~exception() _NOEXCEPT +exception::~exception() noexcept { } -const char* exception::what() const _NOEXCEPT +const char* exception::what() const noexcept { return "std::exception"; } // bad_exception -bad_exception::~bad_exception() _NOEXCEPT +bad_exception::~bad_exception() noexcept { } -const char* bad_exception::what() const _NOEXCEPT +const char* bad_exception::what() const noexcept { return "std::bad_exception"; } @@ -37,32 +37,32 @@ const char* bad_exception::what() const _NOEXCEPT // bad_alloc -bad_alloc::bad_alloc() _NOEXCEPT +bad_alloc::bad_alloc() noexcept { } -bad_alloc::~bad_alloc() _NOEXCEPT +bad_alloc::~bad_alloc() noexcept { } const char* -bad_alloc::what() const _NOEXCEPT +bad_alloc::what() const noexcept { return "std::bad_alloc"; } // bad_array_new_length -bad_array_new_length::bad_array_new_length() _NOEXCEPT +bad_array_new_length::bad_array_new_length() noexcept { } -bad_array_new_length::~bad_array_new_length() _NOEXCEPT +bad_array_new_length::~bad_array_new_length() noexcept { } const char* -bad_array_new_length::what() const _NOEXCEPT +bad_array_new_length::what() const noexcept { return "bad_array_new_length"; } |