[PATCH] D21232: Add attribute noreturn to functions that throw

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 13:47:46 PDT 2016


kparzysz added a subscriber: kparzysz.
kparzysz added a comment.

http://en.cppreference.com/w/cpp/language/attributes

> [[noreturn]]	Indicates that the function does not return.

> 

> This attribute applies to function declarations only. The behavior is undefined if the function with this attribute actually returns. 

>  The following standard functions have this attribute: std::_Exit, std::abort, std::exit, std::quick_exit, std::unexpected, std::terminate, std::rethrow_exception, std::throw_with_nested, std::nested_exception::rethrow_nested





https://reviews.llvm.org/D21232





More information about the llvm-commits mailing list