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()
444 char *NewBuffer = static_cast<char *>(malloc(NewCapacity)); in Append() local445 memcpy(NewBuffer, Buffer, BufferSize); in Append()449 Buffer = NewBuffer; in Append()
402 std::unique_ptr<MemoryBuffer> NewBuffer = in SetCodeCompletionPoint() local405 char *NewBuf = const_cast<char*>(NewBuffer->getBufferStart()); in SetCodeCompletionPoint()409 SourceMgr.overrideFileContents(File, std::move(NewBuffer)); in SetCodeCompletionPoint()