Author: epilk Date: Tue Jan 8 09:04:38 2019 New Revision: 350639 URL: http://llvm.org/viewvc/llvm-project?rev=350639&view=rev Log: Revert "Split -Wdelete-non-virtual-dtor into -Wdelete-abstract-non-virtual-dtor"
This reverts commit r350585. There was some late post-commit review on phab. Removed: cfe/trunk/test/SemaCXX/non-virtual-dtors.cpp Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=350639&r1=350638&r2=350639&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original) +++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Tue Jan 8 09:04:38 2019 @@ -105,8 +105,6 @@ def MissingNoEscape : DiagGroup<"missing def DeleteIncomplete : DiagGroup<"delete-incomplete">; def DeleteNonVirtualDtor : DiagGroup<"delete-non-virtual-dtor">; -def DeleteAbstractNonVirtualDtor : DiagGroup<"delete-abstract-non-virtual-dtor", - [DeleteNonVirtualDtor]>; def AbstractFinalClass : DiagGroup<"abstract-final-class">; def CXX11CompatDeprecatedWritableStr : Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=350639&r1=350638&r2=350639&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original) +++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue Jan 8 09:04:38 2019 @@ -6460,7 +6460,7 @@ def note_delete_non_virtual : Note< "qualify call to silence this warning">; def warn_delete_abstract_non_virtual_dtor : Warning< "%select{delete|destructor}0 called on %1 that is abstract but has " - "non-virtual destructor">, InGroup<DeleteAbstractNonVirtualDtor>, ShowInSystemHeader; + "non-virtual destructor">, InGroup<DeleteNonVirtualDtor>, ShowInSystemHeader; def warn_overloaded_virtual : Warning< "%q0 hides overloaded virtual %select{function|functions}1">, InGroup<OverloadedVirtual>, DefaultIgnore; Removed: cfe/trunk/test/SemaCXX/non-virtual-dtors.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/non-virtual-dtors.cpp?rev=350638&view=auto ============================================================================== --- cfe/trunk/test/SemaCXX/non-virtual-dtors.cpp (original) +++ cfe/trunk/test/SemaCXX/non-virtual-dtors.cpp (removed) @@ -1,32 +0,0 @@ -// RUN: %clang_cc1 %s -verify -DDIAG1 -// RUN: %clang_cc1 %s -verify -DDIAG1 -DDIAG2 -Wdelete-non-virtual-dtor -// RUN: %clang_cc1 %s -verify -DDIAG1 -Wmost -Wno-delete-non-virtual-dtor -// RUN: %clang_cc1 %s -verify -Wmost -Wno-delete-abstract-non-virtual-dtor - -#ifndef DIAG1 -#ifndef DIAG2 -// expected-no-diagnostics -#endif -#endif - -struct S1 { - ~S1() {} - virtual void abs() = 0; -}; - -void f1(S1 *s1) { delete s1; } -#ifdef DIAG1 -// expected-warning@-2 {{delete called on 'S1' that is abstract but has non-virtual destructor}} -#endif - -struct Base { - virtual void abs() = 0; -}; -struct S2 : Base { - ~S2() {} - void abs() {} -}; -void f2(S2 *s2) { delete s2; } -#ifdef DIAG2 -// expected-warning@-2 {{delete called on non-final 'S2' that has virtual functions but non-virtual destructor}} -#endif _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits