]> granicus.if.org Git - clang/commit
Fix some -Wexceptions false positives.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 20 Feb 2018 02:32:30 +0000 (02:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 20 Feb 2018 02:32:30 +0000 (02:32 +0000)
commit0432808d1f27410b69c3fd24e2a65d45a759868c
treedd569c433237292c7534bc9fd5092e1ca584260c
parentc05a0c0240fcfc2d7d463326482a715ebbba6c1c
Fix some -Wexceptions false positives.

Reimplement the "noexcept function actually throws" warning to properly handle
nested try-blocks. In passing, change 'throw;' handling to treat any enclosing
try block as being sufficient to suppress the warning rather than requiring a
'catch (...)'; the warning is intended to be conservatively-correct.

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