[cfe-commits] r49141 - /cfe/trunk/include/clang/AST/Decl.h

Sam Bishop sam at bishop.dhs.org
Wed Apr 2 22:29:20 PDT 2008


Author: sbishop
Date: Thu Apr  3 00:29:20 2008
New Revision: 49141

URL: http://llvm.org/viewvc/llvm-project?rev=49141&view=rev
Log:
Temporarily make the Decl virtual destructor public, so that calls to "delete"
can be tested on derived classes.

Modified:
    cfe/trunk/include/clang/AST/Decl.h

Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=49141&r1=49140&r2=49141&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Thu Apr  3 00:29:20 2008
@@ -126,9 +126,11 @@
     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; }
 





More information about the cfe-commits mailing list