[all-commits] [llvm/llvm-project] 74910c: HeaderSearch: Simplify use of FileEntryRef in Head...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Fri Oct 23 19:11:11 PDT 2020


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

  Changed paths:
    M clang/lib/Lex/HeaderSearch.cpp

  Log Message:
  -----------
  HeaderSearch: Simplify use of FileEntryRef in HeaderSearch::LookupFile, NFC

Simplify `HeaderSearch::LookupFile`. Instead of deconstructing a
`FileEntryRef` into a name and `FileEntry` and then rebuilding it later,
use it as is. This helps to unblock making the constructor of
`FileEntryRef` private to `FileManager`.

Differential Revision:




More information about the All-commits mailing list