[PATCH] D71092: [VFS] Use path canonicalization on all paths

Adrian McCarthy via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 14:39:24 PST 2019


amccarth created this revision.
amccarth added reviewers: rnk, vsapsai, arphaman.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added a project: LLVM.

The virtual file system had an option to eliminate dots from paths (e.g., `/foo/./bar` -> `/foo/bar`).  Because of differences in Windows-style paths, this was disabled by default on Windows.

Once the earlier VFS portability fixes land we were just one away from enable canonicalization on Windows.  (See https://reviews.llvm.org/D70701)

Note that the old UsePathCanonicalization member could never be changed from the default, so now that we canonicalize on all systems, there was no need to keep the option nor the alternate code paths, so this patch deletes all of that.

Tested with ninja check-clang.


https://reviews.llvm.org/D71092

Files:
  clang/test/VFS/external-names.c
  llvm/include/llvm/Support/VirtualFileSystem.h
  llvm/lib/Support/VirtualFileSystem.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71092.232454.patch
Type: text/x-patch
Size: 5404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191205/f1cbbeb8/attachment-0001.bin>


More information about the cfe-commits mailing list