[PATCH] D33333: Emit warning when throw exception in destruct or dealloc functions which has a (possible implicit) noexcept specifier

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 16 13:46:15 PDT 2017


aaron.ballman added inline comments.


================
Comment at: test/SemaCXX/warn-throw-out-noexcept-func.cpp:1
+// RUN: %clang_cc1 %s  -fdelayed-template-parsing -fcxx-exceptions -fexceptions -fsyntax-only -Wexceptions -verify -std=c++11
+struct A {
----------------
rnk wrote:
> aaron.ballman wrote:
> > I believe you can drop the -fcxx-exceptions as it should be implied by -fexceptions.
> It isn't at the -cc1 level, you need -fcxx-exceptions there. -fexceptions controls landingpad cleanup emission.
Ah, thank you Reid, I forgot about that.


https://reviews.llvm.org/D33333





More information about the cfe-commits mailing list