Update clang/lib/Format and clang/lib/Rewrite to use a MemoryBufferRef
from getBufferOrFake instead of MemoryBuffer* from getBuffer.
No functionality change here, since the call sites weren't checking if
the buffer was valid.
Paths
| Differential D89406
clang/{Format,Rewrite}: Stop using SourceManager::getBuffer, NFC ClosedPublic Authored by dexonsmith on Oct 14 2020, 10:02 AM.
Details Summary Update clang/lib/Format and clang/lib/Rewrite to use a MemoryBufferRef No functionality change here, since the call sites weren't checking if
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 19 2020, 12:15 PM Closed by commit rG0ddf4bd47c18: clang/{Format,Rewrite}: Stop using SourceManager::getBuffer, NFC (authored by dexonsmith). · Explain WhyOct 19 2020, 2:03 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 299149 clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Rewrite/HTMLRewrite.cpp
|