Discovered that 'nothrow' (which is supposed to be an alias for noexcept)
was not warning with a throw inside of it. This patch corrects the behavior
previously created to add 'nothrow' to this list.
Details
Details
- Reviewers
rnk aaron.ballman jyu2 - Commits
- rG9d10bdf6448f: [Sema] Corrected the warn-on-throw-from-noexcept behavior to include nothrow
rC314229: [Sema] Corrected the warn-on-throw-from-noexcept behavior to include nothrow
rL314229: [Sema] Corrected the warn-on-throw-from-noexcept behavior to include nothrow
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Aside from a minor testing nit, LGTM! Thanks!
test/SemaCXX/warn-throw-out-noexcept-func.cpp | ||
---|---|---|
20 ↗ | (On Diff #116426) | Can you also add a test for __declspec(nothrow)? |