[PATCH] D67026: Introduce a DirectoryEntryRef that stores both a reference and an accessed name to the directory entry

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 16:04:27 PDT 2019


arphaman created this revision.
arphaman added reviewers: Bigcheese, bruno, dexonsmith.
Herald added subscribers: ributzka, jkorous.
Herald added a project: clang.

This patch is similar to the FileEntryRef patch, in that it introduces a parallel API to get the directory entry, without replacing all uses. The immediate use in the patch fixes the issue where a file manager was reused in clang-scan-deps, but reported an different file path whenever a framework lookup was done through a symlink.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67026

Files:
  clang/include/clang/Basic/FileManager.h
  clang/include/clang/Lex/DirectoryLookup.h
  clang/lib/Basic/FileManager.cpp
  clang/lib/Frontend/InitHeaderSearch.cpp
  clang/lib/Lex/HeaderSearch.cpp
  clang/lib/Lex/PPDirectives.cpp
  clang/test/ClangScanDeps/Inputs/subframework_header_dir_symlink_cdb.json
  clang/test/ClangScanDeps/subframework_header_dir_symlink.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67026.218181.patch
Type: text/x-patch
Size: 10806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190830/4ea68a14/attachment-0001.bin>


More information about the cfe-commits mailing list