[all-commits] [llvm/llvm-project] 156e8b: clang/Basic: Remove ContentCache::getRawBuffer, NFC

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Thu Oct 22 11:01:26 PDT 2020


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

  Changed paths:
    M clang-tools-extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
    M clang/include/clang/Basic/SourceManager.h
    M clang/lib/Basic/SourceManager.cpp
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp

  Log Message:
  -----------
  clang/Basic: Remove ContentCache::getRawBuffer, NFC

Replace `ContentCache::getRawBuffer` with `getBufferDataIfLoaded` and
`getBufferIfLoaded`, excising another accessor for the underlying
`MemoryBuffer*` in favour of `StringRef` and `MemoryBufferRef`.

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




More information about the All-commits mailing list