From: Sam Bishop Date: Thu, 3 Apr 2008 05:29:20 +0000 (+0000) Subject: Temporarily make the Decl virtual destructor public, so that calls to "delete" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dd1cf4031a2a06be3e3c15353ff34d5ee6e8754;p=clang Temporarily make the Decl virtual destructor public, so that calls to "delete" can be tested on derived classes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49141 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 3db06cc0f0..75b3ff7040 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -126,9 +126,11 @@ protected: if (Decl::CollectingStats()) addDeclKind(DK); } +public: + // TODO: This should probably be made protected once derived classes have + // destructors. virtual ~Decl(); -public: SourceLocation getLocation() const { return Loc; } void setLocation(SourceLocation L) { Loc = L; }