Update clang/lib/Frontend to use a MemoryBufferRef from
getBufferOrFake instead of MemoryBuffer* from getBuffer, with the
exception of FrontendInputFile, which I'm leaving for later.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D89409
clang/Frontend: Mostly stop using SourceManager::getBuffer, NFC ClosedPublic Authored by dexonsmith on Oct 14 2020, 10:41 AM.
Details Summary Update clang/lib/Frontend to use a MemoryBufferRef from
Diff Detail Event Timelinedexonsmith added a parent revision: D89348: clang/Basic: Replace ContentCache::getBuffer with Optional semantics. dexonsmith added a child revision: D66782: SourceManager: Prefer Optional<MemoryBufferRef> over MemoryBuffer*. dexonsmith added a child revision: D89427: clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer).Oct 14 2020, 2:30 PM dexonsmith removed a child revision: D66782: SourceManager: Prefer Optional<MemoryBufferRef> over MemoryBuffer*. This revision is now accepted and ready to land.Oct 14 2020, 6:38 PM Closed by commit rG63af24227981: clang/Frontend: Mostly stop using SourceManager::getBuffer, NFC (authored by dexonsmith). · Explain WhyOct 14 2020, 8:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 298178 clang/lib/Frontend/FrontendAction.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Frontend/Rewrite/HTMLPrint.cpp
clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
clang/lib/Frontend/Rewrite/RewriteObjC.cpp
|