forked from OSchip/llvm-project
lldb: Update for change in `clang::Lexer`'s constructor
b3eff6b7bb
updated `Lexer::Lexer` to take
`clang::MemoryBufferRef` instead of `clang::MemoryBuffer*`. Update LLDB
to fix the bots.
This commit is contained in:
parent
6ca3dd9735
commit
f96e16bc15
|
@ -231,7 +231,7 @@ TokenVerifier::TokenVerifier(std::string body) {
|
|||
Opts.CPlusPlus17 = true;
|
||||
Opts.LineComment = true;
|
||||
|
||||
Lexer lex(FID, buf.get(), SM, Opts);
|
||||
Lexer lex(FID, buf->getMemBufferRef(), SM, Opts);
|
||||
|
||||
Token token;
|
||||
bool exit = false;
|
||||
|
|
|
@ -178,7 +178,7 @@ void ClangHighlighter::Highlight(const HighlightStyle &options,
|
|||
Opts.CPlusPlus17 = true;
|
||||
Opts.LineComment = true;
|
||||
|
||||
Lexer lex(FID, buf.get(), SM, Opts);
|
||||
Lexer lex(FID, buf->getMemBufferRef(), SM, Opts);
|
||||
// The lexer should keep whitespace around.
|
||||
lex.SetKeepWhitespaceMode(true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue