]> granicus.if.org Git - clang/commitdiff
Add public placement-delete operators. These are automatically used if the allocation...
authorDouglas Gregor <dgregor@apple.com>
Sun, 8 Feb 2009 00:29:56 +0000 (00:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 8 Feb 2009 00:29:56 +0000 (00:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64056 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h

index 61f8b9c9ad2fd9250734606019def20d77aef0b3..3f76c95fb569096efdc9dd6aff57f2f7c83113e0 100644 (file)
@@ -130,7 +130,11 @@ public:
   void* operator new(size_t bytes, void* mem) throw() {
     return mem;
   }
-  
+
+  void operator delete(void*, ASTContext& C) throw() { }
+  void operator delete(void*, ASTContext& C, unsigned alignment) throw() { }
+  void operator delete(void*, std::size_t) throw() { }
+
 protected:
   /// DestroyChildren - Invoked by destructors of subclasses of Stmt to
   ///  recursively release child AST nodes.