[all-commits] [llvm/llvm-project] e6f6c5: [Support] Improve Windows widenPath and add suppor...
Andrew Ng via All-commits
all-commits at lists.llvm.org
Thu Mar 19 06:01:56 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e6f6c551213a65b66e63f3c5d84b85d2b99097f3
https://github.com/llvm/llvm-project/commit/e6f6c551213a65b66e63f3c5d84b85d2b99097f3
Author: Andrew Ng <andrew.ng at sony.com>
Date: 2020-03-19 (Thu, 19 Mar 2020)
Changed paths:
M llvm/include/llvm/Support/Path.h
M llvm/include/llvm/Support/Windows/WindowsSupport.h
M llvm/lib/Support/Windows/Path.inc
M llvm/lib/Support/Windows/Program.inc
M llvm/unittests/Support/Path.cpp
Log Message:
-----------
[Support] Improve Windows widenPath and add support for long UNC paths
Check the path length limit against the length of the UTF-16 version of
the input rather than the UTF-8 equivalent, as the UTF-16 length may be
shorter. Move widenPath from the llvm::sys::path namespace in Path.h to
the llvm::sys::windows namespace in WindowsSupport.h. Only use the
reduced path length limit for create directory. Canonicalize using
sys::path::remove_dots().
Differential Revision: https://reviews.llvm.org/D75372
More information about the All-commits
mailing list