Add an optional argument to expand tildes in the path to mirror llvm's
implementation of the corresponding function.
Apparently this change is more controversial than I thought, so happy
to discuss alternatives here.
Paths
| Differential D54435
[VFS] Add "expand tilde" argument to getRealPath. AbandonedPublic Authored by JDevlieghere on Nov 12 2018, 10:57 AM.
Details
Diff Detail Event TimelineComment Actions
I'm not sure this is true. It the overlay specifies a different home directory (this functionality doesn't exist yet) it should take that one, otherwise it should defer to the underlying one.
Would a separate method address those 3 concerns? My goal was to keep things simple and mirror llvm's API, which helps with migrating between the two. I don't have a strong opinion on this though, as long as the functionality is available.
Thanks, I look forward to your input! Comment Actions Thanks for sending this! I may well be missing requirements, details, or historical context here.
Comment Actions I created D54448 to add an expand_tilde function to llvm's filesystem as per Sam's suggestion. This still won't work for my reproducer feature in LLDB, but if everyone feels this doesn't belong in the VFS I can simply implement it there.
Revision Contents
Diff 173716 llvm/trunk/include/llvm/Support/VirtualFileSystem.h
llvm/trunk/lib/Support/VirtualFileSystem.cpp
llvm/trunk/unittests/Support/VirtualFileSystemTest.cpp
|