[PATCH] D38202: Add Documentation to attribute-nothrow. Additionally, limit to functions.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 25 05:11:12 PDT 2017
aaron.ballman 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
----------------
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?
================
Comment at: include/clang/Basic/AttrDocs.td:2694
+equivilent of `noexcept` on function declarations. This attribute informs the
+compiler that the annotated function does cannot throw an exception. This
+prevents exception-unwinding. This attribute is particularly useful on functions
----------------
"does cannot"
https://reviews.llvm.org/D38202
More information about the cfe-commits
mailing list