[PATCH] D74777: [VFS][WIP] More consistent handling of hybrid paths of Windows+Posix styles

Adrian McCarthy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 09:49:09 PST 2020


amccarth created this revision.
amccarth added reviewers: john.brawn, rnk.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This is a counter-proposal to the fix suggested in

  https://reviews.llvm.org/D74488

VFS paths can be a hybrid of Windows and Posix styles, so the sys::path methods sometimes cannot handle them.  This generalizes the VFS-specific canonicalize function to remove traversal components from these possibly hybrid paths.

THIS NEEDS TESTS.


https://reviews.llvm.org/D74777

Files:
  llvm/lib/Support/VirtualFileSystem.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74777.245191.patch
Type: text/x-patch
Size: 4347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200218/a12c4d93/attachment.bin>


More information about the llvm-commits mailing list