[all-commits] [llvm/llvm-project] 1d3ba0: [clang][lex] NFCI: Use DirectoryEntryRef in Header...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Apr 20 09:54:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d3ba05e4a288b49287fe997763e90234b8c62db
      https://github.com/llvm/llvm-project/commit/1d3ba05e4a288b49287fe997763e90234b8c62db
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

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

  Log Message:
  -----------
  [clang][lex] NFCI: Use DirectoryEntryRef in HeaderSearch::load*()

This patch removes uses of the deprecated `DirectoryEntry::getName()` from `HeaderSearch::load*()` functions by using `DirectoryEntryRef` instead.

Note that we bail out in one case and use the also deprecated `FileEntry::getLastRef()`. That's to prevent this patch from growing, and is addressed in a follow-up.

Reviewed By: bnbarham

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




More information about the All-commits mailing list