]> granicus.if.org Git - clang/commit
[Sema] Corrected the warn-on-throw-from-noexcept behavior to include nothrow
authorErich Keane <erich.keane@intel.com>
Tue, 26 Sep 2017 18:20:39 +0000 (18:20 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 26 Sep 2017 18:20:39 +0000 (18:20 +0000)
commit5d8103ae7d8317484c2cb2e75edb37b1cc8d4d1b
treefb0845786e47da56888c3127f35786188118e367
parent95e338915510c070dfe8bb0b2f142681144b16b4
[Sema] Corrected the warn-on-throw-from-noexcept behavior to include nothrow

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.

Differential Revision: https://reviews.llvm.org/D38203

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/warn-throw-out-noexcept-func.cpp