[all-commits] [llvm/llvm-project] 2dc7e0: clang/Basic: Replace SourceManager::getMemoryBuffe...
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Tue Oct 20 14:01:50 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2dc7e0c6a586135fe236cd7ebf065617a7638bdb
https://github.com/llvm/llvm-project/commit/2dc7e0c6a586135fe236cd7ebf065617a7638bdb
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2020-10-20 (Tue, 20 Oct 2020)
Changed paths:
M clang/include/clang/Basic/SourceManager.h
M clang/include/clang/Frontend/PrecompiledPreamble.h
M clang/lib/Basic/SourceManager.cpp
M clang/lib/Frontend/PrecompiledPreamble.cpp
M clang/lib/Lex/Preprocessor.cpp
Log Message:
-----------
clang/Basic: Replace SourceManager::getMemoryBufferForFile, NFC
Replace `SourceManager::getMemoryBufferForFile`, which returned a
dereferenceable `MemoryBuffer*` and had a `bool*Invalid` out parameter,
with `getMemoryBufferForFileOrNone` (returning
`Optional<MemoryBufferRef>`) and `getMemoryBufferForFileOrFake`
(returning `MemoryBufferRef`).
Differential Revision: https://reviews.llvm.org/D89429
More information about the All-commits
mailing list