Add attribute noreturn to functions that throw
Reviewers: mclow.lists, EricWF, howard.hinnant, sebpop Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D21232 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@279903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1183,6 +1183,8 @@ _LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_TYPE_VIS codecvt_byname<wchar_t, char, mb
|
|||||||
_LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_TYPE_VIS codecvt_byname<char16_t, char, mbstate_t>)
|
_LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_TYPE_VIS codecvt_byname<char16_t, char, mbstate_t>)
|
||||||
_LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_TYPE_VIS codecvt_byname<char32_t, char, mbstate_t>)
|
_LIBCPP_EXTERN_TEMPLATE2(class _LIBCPP_TYPE_VIS codecvt_byname<char32_t, char, mbstate_t>)
|
||||||
|
|
||||||
|
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void __throw_runtime_error(const char*);
|
||||||
|
|
||||||
template <size_t _Np>
|
template <size_t _Np>
|
||||||
struct __narrow_to_utf8
|
struct __narrow_to_utf8
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -635,7 +635,8 @@ private:
|
|||||||
static string __init(const error_code&, string);
|
static string __init(const error_code&, string);
|
||||||
};
|
};
|
||||||
|
|
||||||
_LIBCPP_FUNC_VIS void __throw_system_error(int ev, const char* what_arg);
|
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS
|
||||||
|
void __throw_system_error(int ev, const char* what_arg);
|
||||||
|
|
||||||
_LIBCPP_END_NAMESPACE_STD
|
_LIBCPP_END_NAMESPACE_STD
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user