Set the source buffer that this lexer will tokenize.
Synopsis
Declared in <llvm/MC/MCParser/AsmLexer.h>
void
setBuffer(
StringRef Buf,
char const* ptr = nullptr,
bool EndStatementAtEOF = true);
Description
Buf must be NULL‐terminated. NULL terminator must reside at Buf.end(). ptr if provided must be in range [`Buf.begin(), `buf.end()]or NULL. Specifies where lexing of buffer should begin. EndStatementAtEOF specifies whether AsmToken::EndOfStatement should be returned upon reaching end of buffer.
Parameters
Name |
Description |
Buf |
NULL‐terminated buffer; terminator must be at |
ptr |
Start of lexing, or nullptr to start at |
EndStatementAtEOF |
If true, emit EndOfStatement at end of buffer. |
Created with MrDocs