[all-commits] [llvm/llvm-project] b3eff6: Lexer: Update the Lexer to use MemoryBufferRef, NFC
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Mon Oct 19 16:10:43 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b3eff6b7bb31e7ef059a3d238de138849839fbbd
https://github.com/llvm/llvm-project/commit/b3eff6b7bb31e7ef059a3d238de138849839fbbd
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M clang-tools-extra/clangd/Format.cpp
M clang/include/clang/Lex/Lexer.h
M clang/lib/Format/FormatTokenLexer.cpp
M clang/lib/Frontend/FrontendAction.cpp
M clang/lib/Frontend/FrontendActions.cpp
M clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
M clang/lib/Frontend/Rewrite/RewriteMacros.cpp
M clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
M clang/lib/Lex/Lexer.cpp
M clang/lib/Lex/PPLexerChange.cpp
M clang/lib/Rewrite/HTMLRewrite.cpp
M clang/lib/Rewrite/TokenRewriter.cpp
M clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
Log Message:
-----------
Lexer: Update the Lexer to use MemoryBufferRef, NFC
Update `Lexer` / `Lexer::Lexer` to use `MemoryBufferRef` instead of
`MemoryBuffer*`. Callers that were acquiring a `MemoryBuffer*` via
`SourceManager::getBuffer` were updated, such that if they checked
`Invalid` they use `getBufferOrNone` and otherwise `getBufferOrFake`.
Differential Revision: https://reviews.llvm.org/D89398
More information about the All-commits
mailing list