[PATCH] D38202: Add Documentation to attribute-nothrow. Additionally, limit to functions.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 26 15:31:31 PDT 2017


erichkeane marked an inline comment as done.
erichkeane added inline comments.


================
Comment at: include/clang/Basic/AttrDocs.td:2692
+  let Content = [{
+Clang supports the GNU style ``__attribute__((nothrow))`` attribute as an
+equivilent of `noexcept` on function declarations. This attribute informs the
----------------
aaron.ballman wrote:
> Should probably add something about `__declspec(nothrow)` as well.
> 
> Are the semantics really identical to `noexcept`? For instance, does `std::terminate()` get called if a function is marked `__declspec(nothrow)` and it throws, or does it simply crash?
I'm unable in GCC to identify any difference between nothrow and noexcept.  It DOES do std::terminate in 7.2, and presumably older versions as well.


https://reviews.llvm.org/D38202





More information about the cfe-commits mailing list