Lines Matching defs:new
29 #include <new>
80 void *operator new(size_t N, const NamedBufferAlloc &Alloc) {
81 char *Mem = static_cast<char *>(operator new(N + Alloc.Name.size() + 1));
110 return new (NamedBufferAlloc(BufferName))
126 /// getNewUninitMemBuffer - Allocate a new MemoryBuffer of the specified size
138 char *Mem = static_cast<char*>(operator new(RealLen, std::nothrow));
148 return new (Mem) MemoryBufferMem(StringRef(Buf, Size), true);
151 /// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
345 result.reset(new (NamedBufferAlloc(Filename)) MemoryBufferMMapFile(
354 // new(std::nothrow) returns 0.