[PATCH] D89398: Lexer: Update the Lexer to use MemoryBufferRef, NFC
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 14 08:41:31 PDT 2020
dexonsmith created this revision.
dexonsmith added a reviewer: arphaman.
Herald added subscribers: usaxena95, ributzka, kadircet.
dexonsmith requested review of this revision.
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`.
https://reviews.llvm.org/D89398
Files:
clang-tools-extra/clangd/Format.cpp
clang/include/clang/Lex/Lexer.h
clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
clang/lib/Frontend/Rewrite/RewriteMacros.cpp
clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
clang/lib/Lex/Lexer.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Rewrite/HTMLRewrite.cpp
clang/lib/Rewrite/TokenRewriter.cpp
clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89398.298158.patch
Type: text/x-patch
Size: 18565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201014/6fd17765/attachment-0001.bin>
More information about the cfe-commits
mailing list