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.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rL LLVM
 
Event Timeline
Comment Actions
A few minor comments. Assuming the FIXME I point out was intentionally left for later, this LGTM.
| clang/include/clang/Basic/FileManager.h | ||
|---|---|---|
| 59 ↗ | (On Diff #218181) | Should this return const Directory& because it's guaranteed to be valid.  | 
| clang/include/clang/Lex/DirectoryLookup.h | ||
| 68–69 ↗ | (On Diff #218181) | Since you're modifying this constructor it might be nice to cleanup the comment style (drop the Directory ctor - prefix). Up to you.  | 
| clang/lib/Lex/HeaderSearch.cpp | ||
| 299 ↗ | (On Diff #218181) | Did you mean to leave this behind for a future commit? Or did you miss fixing this?  | 
| clang/lib/Lex/HeaderSearch.cpp | ||
|---|---|---|
| 299 ↗ | (On Diff #218181) | This is for a future commit.  |