llvm::RewriteBuffer::RemoveText

Remove the specified text from the buffer.

Synopsis

Declared in <llvm/ADT/RewriteBuffer.h>

void
RemoveText(
    unsigned int OrigOffset,
    unsigned int Size,
    bool removeLineIfEmpty = false);

Parameters

NameDescription
OrigOffsetOffset into the original SourceBuffer where removal begins.
SizeNumber of characters to remove.
removeLineIfEmptyIf true, also remove the enclosing line when it becomes empty after the removal.