aboutsummaryrefslogtreecommitdiff
path: root/lib/libcxxabi/src/stdlib_stdexcept.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcxxabi/src/stdlib_stdexcept.cpp')
-rw-r--r--lib/libcxxabi/src/stdlib_stdexcept.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/libcxxabi/src/stdlib_stdexcept.cpp b/lib/libcxxabi/src/stdlib_stdexcept.cpp
index 4a464e4889..d466f69c51 100644
--- a/lib/libcxxabi/src/stdlib_stdexcept.cpp
+++ b/lib/libcxxabi/src/stdlib_stdexcept.cpp
@@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
-#include "../../libcxx/src/include/refstring.h"
#include "stdexcept"
#include "new"
#include <cstdlib>
@@ -14,34 +13,37 @@
#include <cstdint>
#include <cstddef>
+// This includes an implementation file from libc++.
+#include "../../libcxx/src/include/refstring.h"
+
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