]> granicus.if.org Git - clang/commit
Introduce a DirectoryEntryRef that stores both a reference and an
authorAlex Lorenz <arphaman@gmail.com>
Sat, 31 Aug 2019 01:26:04 +0000 (01:26 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Sat, 31 Aug 2019 01:26:04 +0000 (01:26 +0000)
commitbd94a6e73a36a4c70b09eb4d6a689e03c2d9a010
treef357fd64281d4edf8e45983474cfa594ddbe3e0f
parentad57483a9ff0c36ca642528b81fbb05641e5d7f1
Introduce a DirectoryEntryRef that stores both a reference and an
accessed name to the directory entry

This commit introduces a parallel API that returns a DirectoryEntryRef
to the FileManager, similar to the parallel FileEntryRef API. All
uses will have to be update in follow-up patches. The immediate use of the new API in this
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.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370562 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/FileManager.h
include/clang/Lex/DirectoryLookup.h
lib/Basic/FileManager.cpp
lib/Frontend/InitHeaderSearch.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/PPDirectives.cpp
test/ClangScanDeps/Inputs/subframework_header_dir_symlink_cdb.json
test/ClangScanDeps/subframework_header_dir_symlink.m
unittests/Lex/HeaderSearchTest.cpp
unittests/Lex/PPCallbacksTest.cpp