Added [[noreturn]] attribute everywhere it should be

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@132125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2011-05-26 17:07:32 +00:00
parent 8feadca3fa
commit 4b7a43da34
3 changed files with 17 additions and 11 deletions

View File

@@ -35,6 +35,7 @@ std::get_unexpected() throw()
return __sync_fetch_and_add(&__unexpected_handler, (std::unexpected_handler)0);
}
_ATTRIBUTE(noreturn)
void
std::unexpected()
{
@@ -56,7 +57,7 @@ std::get_terminate() throw()
}
void
std::terminate()
std::terminate() _NOEXCEPT
{
#ifndef _LIBCPP_NO_EXCEPTIONS
try
@@ -156,8 +157,9 @@ nested_exception::~nested_exception()
{
}
_ATTRIBUTE(noreturn)
void
nested_exception::rethrow_nested /*[[noreturn]]*/ () const
nested_exception::rethrow_nested() const
{
if (__ptr_ == nullptr)
terminate();