This is an archive of the discontinued LLVM Phabricator instance.

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
from getBufferOrFake instead of MemoryBuffer* from getBuffer.

No functionality change here, since the call sites weren't checking if
the buffer was valid.

Diff Detail