This is an archive of the discontinued LLVM Phabricator instance.

Add Documentation to attribute-nothrow. Additionally, limit to functions.
ClosedPublic

Authored by erichkeane on Sep 22 2017, 4:04 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

erichkeane created this revision.Sep 22 2017, 4:04 PM
aaron.ballman added inline comments.Sep 25 2017, 5:11 AM
include/clang/Basic/AttrDocs.td
2692 ↗(On Diff #116424)

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?

2694 ↗(On Diff #116424)

"does cannot"

erichkeane marked an inline comment as done.Sep 26 2017, 1:39 PM
erichkeane added inline comments.
include/clang/Basic/AttrDocs.td
2692 ↗(On Diff #116424)

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.

Added declspec, fixed does cannot.

This revision is now accepted and ready to land.Sep 28 2017, 10:42 AM
This revision was automatically updated to reflect the committed changes.