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_stdexcept.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_stdexcept.cpp')
-rw-r--r-- | libcxxabi/src/stdlib_stdexcept.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libcxxabi/src/stdlib_stdexcept.cpp b/libcxxabi/src/stdlib_stdexcept.cpp index 0f5efe491b49..0ca378dcde01 100644 --- a/libcxxabi/src/stdlib_stdexcept.cpp +++ b/libcxxabi/src/stdlib_stdexcept.cpp @@ -21,29 +21,29 @@ static_assert(sizeof(std::__libcpp_refstring) == sizeof(const char *), ""); namespace std // purposefully not using versioning namespace { -logic_error::~logic_error() _NOEXCEPT {} +logic_error::~logic_error() noexcept {} const char* -logic_error::what() const _NOEXCEPT +logic_error::what() const noexcept { return __imp_.c_str(); } -runtime_error::~runtime_error() _NOEXCEPT {} +runtime_error::~runtime_error() noexcept {} const char* -runtime_error::what() const _NOEXCEPT +runtime_error::what() const noexcept { return __imp_.c_str(); } -domain_error::~domain_error() _NOEXCEPT {} -invalid_argument::~invalid_argument() _NOEXCEPT {} -length_error::~length_error() _NOEXCEPT {} -out_of_range::~out_of_range() _NOEXCEPT {} +domain_error::~domain_error() noexcept {} +invalid_argument::~invalid_argument() noexcept {} +length_error::~length_error() noexcept {} +out_of_range::~out_of_range() noexcept {} -range_error::~range_error() _NOEXCEPT {} -overflow_error::~overflow_error() _NOEXCEPT {} -underflow_error::~underflow_error() _NOEXCEPT {} +range_error::~range_error() noexcept {} +overflow_error::~overflow_error() noexcept {} +underflow_error::~underflow_error() noexcept {} } // std |