[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)
commit9d10bdf6448f8971e5c893d23bcb7d933a0efce4
tree3e0e31760521c4cbbc2c1c631d9c536e42c0a830
parentb379ba6a62efca54313c1a91ebc5da3dbe25f3c0
[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

llvm-svn: 314229
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/test/SemaCXX/warn-throw-out-noexcept-func.cpp