]> granicus.if.org Git - clang/commitdiff
Temporarily make the Decl virtual destructor public, so that calls to "delete"
authorSam Bishop <sam@bishop.dhs.org>
Thu, 3 Apr 2008 05:29:20 +0000 (05:29 +0000)
committerSam Bishop <sam@bishop.dhs.org>
Thu, 3 Apr 2008 05:29:20 +0000 (05:29 +0000)
can be tested on derived classes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49141 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index 3db06cc0f091a6046f7dc9e0365792f375f0eff4..75b3ff70404f56eedbae87290932ed47f65c7b98 100644 (file)
@@ -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; }