[PATCH] D89398: Lexer: Update the Lexer to use MemoryBufferRef, NFC
Jonas Devlieghere via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 12:19:33 PDT 2020
JDevlieghere added inline comments.
================
Comment at: clang/include/clang/Lex/Lexer.h:145
/// outlive it, so it doesn't take ownership of either of them.
- Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP);
+ Lexer(FileID FID, const llvm::MemoryBufferRef &InputFile, Preprocessor &PP);
----------------
Should `MemoryBufferRef`s be passed by value like `StringRef`s?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89398/new/
https://reviews.llvm.org/D89398
More information about the cfe-commits
mailing list