Skip to content

Commit 85a9da9

Browse files
committed
Uglify noexcept
1 parent 9f308de commit 85a9da9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libcxx/include/__exception/exception_ptr.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
128128
};
129129

130130
// Must be defined outside the class definition due to _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE
131-
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr exception_ptr::__from_native_exception_pointer(void* __e) noexcept {
131+
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr exception_ptr::__from_native_exception_pointer(void* __e) _NOEXCEPT {
132132
__increment_refcount(__e);
133133
exception_ptr __ptr;
134134
__ptr.__ptr_ = __e;
135135
return __ptr;
136136
}
137137

138138
// Must be defined outside the class definition due to _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE
139-
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr::exception_ptr(const exception_ptr& __other) noexcept
139+
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr::exception_ptr(const exception_ptr& __other) _NOEXCEPT
140140
: __ptr_(__other.__ptr_) {
141141
__increment_refcount(__ptr_);
142142
}
@@ -146,7 +146,7 @@ _LIBCPP_HIDE_FROM_ABI inline exception_ptr::exception_ptr(exception_ptr&& __othe
146146
}
147147

148148
// Must be defined outside the class definition due to _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE
149-
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr& exception_ptr::operator=(const exception_ptr& __other) noexcept {
149+
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr& exception_ptr::operator=(const exception_ptr& __other) _NOEXCEPT {
150150
if (__ptr_ != __other.__ptr_) {
151151
__increment_refcount(__other.__ptr_);
152152
__decrement_refcount(__ptr_);
@@ -155,15 +155,15 @@ _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr& exception_ptr::operator=(con
155155
return *this;
156156
}
157157

158-
_LIBCPP_HIDE_FROM_ABI inline exception_ptr& exception_ptr::operator=(exception_ptr&& __other) noexcept {
158+
_LIBCPP_HIDE_FROM_ABI inline exception_ptr& exception_ptr::operator=(exception_ptr&& __other) _NOEXCEPT {
159159
__decrement_refcount(__ptr_);
160160
__ptr_ = __other.__ptr_;
161161
__other.__ptr_ = nullptr;
162162
return *this;
163163
}
164164

165165
// Must be defined outside the class definition due to _LIBCPP_EXPORTED_FROM_LIB_INLINEABLE
166-
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr::~exception_ptr() noexcept { __decrement_refcount(__ptr_); }
166+
_LIBCPP_EXPORTED_FROM_LIB_INLINEABLE exception_ptr::~exception_ptr() _NOEXCEPT { __decrement_refcount(__ptr_); }
167167

168168
# if _LIBCPP_HAS_EXCEPTIONS
169169
# if _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION

libcxx/include/__exception/exception_ptr_cxxabi.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace __cxxabiv1 {
1313

1414
extern "C" {
15-
_LIBCPP_OVERRIDABLE_FUNC_VIS void __cxa_increment_exception_refcount(void*) noexcept;
16-
_LIBCPP_OVERRIDABLE_FUNC_VIS void __cxa_decrement_exception_refcount(void*) noexcept;
17-
_LIBCPP_OVERRIDABLE_FUNC_VIS void* __cxa_current_primary_exception() noexcept;
15+
_LIBCPP_OVERRIDABLE_FUNC_VIS void __cxa_increment_exception_refcount(void*) _NOEXCEPT;
16+
_LIBCPP_OVERRIDABLE_FUNC_VIS void __cxa_decrement_exception_refcount(void*) _NOEXCEPT;
17+
_LIBCPP_OVERRIDABLE_FUNC_VIS void* __cxa_current_primary_exception() _NOEXCEPT;
1818
_LIBCPP_OVERRIDABLE_FUNC_VIS void __cxa_rethrow_primary_exception(void*);
1919
}
2020

0 commit comments

Comments
 (0)