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
- rG LLVM Github Monorepo
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 | Should this return const Directory& because it's guaranteed to be valid. | |
clang/include/clang/Lex/DirectoryLookup.h | ||
68–69 | 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 | Did you mean to leave this behind for a future commit? Or did you miss fixing this? |
clang/lib/Lex/HeaderSearch.cpp | ||
---|---|---|
299 | This is for a future commit. |
Should this return const Directory& because it's guaranteed to be valid.