[cfe-commits] r64056 - /cfe/trunk/include/clang/AST/Stmt.h
Douglas Gregor
dgregor at apple.com
Sat Feb 7 16:29:56 PST 2009
Author: dgregor
Date: Sat Feb 7 18:29:56 2009
New Revision: 64056
URL: http://llvm.org/viewvc/llvm-project?rev=64056&view=rev
Log:
Add public placement-delete operators. These are automatically used if the allocation throws
Modified:
cfe/trunk/include/clang/AST/Stmt.h
Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=64056&r1=64055&r2=64056&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Sat Feb 7 18:29:56 2009
@@ -130,7 +130,11 @@
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.
More information about the cfe-commits
mailing list