// Only allow allocation of Stmts using the allocator in ASTContext
// or by doing a placement new.
void* operator new(size_t bytes, const ASTContext& C,
- unsigned alignment = 8) throw();
+ unsigned alignment = 8);
void* operator new(size_t bytes, const ASTContext* C,
- unsigned alignment = 8) throw();
+ unsigned alignment = 8);
void* operator new(size_t bytes, void* mem) throw() {
return mem;
}
void *Stmt::operator new(size_t bytes, const ASTContext& C,
- unsigned alignment) throw() {
+ unsigned alignment) {
return ::operator new(bytes, C, alignment);
}
void *Stmt::operator new(size_t bytes, const ASTContext* C,
- unsigned alignment) throw() {
+ unsigned alignment) {
return ::operator new(bytes, *C, alignment);
}