[all-commits] [llvm/llvm-project] 46b164: SourceManager: Unify FileEntry/FileEntryRef versio...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Mon Jan 25 17:04:12 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46b1645e6c4fe5020ae08e4d94b3de0c80117b4b
      https://github.com/llvm/llvm-project/commit/46b1645e6c4fe5020ae08e4d94b3de0c80117b4b
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M clang/lib/Basic/SourceManager.cpp

  Log Message:
  -----------
  SourceManager: Unify FileEntry/FileEntryRef versions of createFileID

Change `SourceManager::createFileID(const FileEntry*)` to defer to
`SourceManager::createFileID(FileEntryRef)`. This fixes an unexercised
bug where the latter gained support for named pipes and the former
didn't, but since we're trying to remove all calls to the former it
doesn't really make sense to test this explicitly now that the
implementation is hollowed out.

This is a belated follow-up to 245218bb355599771ba43a0fe1449d1670f2666c,
which sunk named pipe support into FileManager and SourceManager. The
original version of that patch was based on top of
https://reviews.llvm.org/D92984, which removed the `FileEntry` overload
of `createFileID()`, and I missed the subtle difference when it was
rebased.




More information about the All-commits mailing list