[all-commits] [llvm/llvm-project] 0ddf4b: clang/{Format, Rewrite}: Stop using SourceManager::...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Mon Oct 19 14:03:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ddf4bd47c18a4608b67fdda537f575c4c7a0a52
      https://github.com/llvm/llvm-project/commit/0ddf4bd47c18a4608b67fdda537f575c4c7a0a52
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M clang/lib/Format/FormatTokenLexer.cpp
    M clang/lib/Rewrite/HTMLRewrite.cpp

  Log Message:
  -----------
  clang/{Format,Rewrite}: Stop using SourceManager::getBuffer, NFC

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.

Differential Revision: https://reviews.llvm.org/D89406




More information about the All-commits mailing list