Searched refs:NewBuffer (Results 1 – 4 of 4) sorted by relevance
49 char *NewBuffer = new char[NewCapacity]; in grow() local51 memcpy(&NewBuffer[NewIndex], in grow()58 Buffer = NewBuffer; in grow()
66 std::unique_ptr<MemoryBuffer> NewBuffer = in copyBuffer() local68 MemoryBuffer *Ret = NewBuffer.get(); in copyBuffer()69 AllocatedBuffers.push_back(std::move(NewBuffer)); in copyBuffer()
446 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append() local448 memcpy(NewBuffer, Buffer, BufferSize); in Append()451 Buffer = NewBuffer; in Append()
416 std::unique_ptr<MemoryBuffer> NewBuffer = in SetCodeCompletionPoint() local419 char *NewBuf = const_cast<char*>(NewBuffer->getBufferStart()); in SetCodeCompletionPoint()423 SourceMgr.overrideFileContents(File, std::move(NewBuffer)); in SetCodeCompletionPoint()