]> granicus.if.org Git - clang/commit
Fixed -Wexceptions derived-to-base false positives
authorStephan Bergmann <sbergman@redhat.com>
Thu, 29 Jun 2017 17:58:59 +0000 (17:58 +0000)
committerStephan Bergmann <sbergman@redhat.com>
Thu, 29 Jun 2017 17:58:59 +0000 (17:58 +0000)
commitda1f3cf54166a2718e6ab7a28ddf2a10babe3345
tree3bc01bc42aedbc799b52d3e4ed5e9a4e6631bb63
parentafca04ace56897134f5e8e809c7e5dd2d5c7daa4
Fixed -Wexceptions derived-to-base false positives

...as introduced with recent <https://reviews.llvm.org/D33333> "Emit warning
when throw exception in destruct or dealloc functions which has a (possible
implicit) noexcept specifier".  (The equivalent of the goodReference case hit
when building LibreOffice.)

(These warnings are apparently only emitted when no errors have yet been
encountered, so it didn't work to add the test code to the end of the existing
clang/test/SemaCXX/exceptions.cpp.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306715 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/exception-warnings.cpp [new file with mode: 0644]