OSDN Git Service

[libcxx] Make filesystem::path::value_type wchar_t on windows
authorMartin Storsjö <martin@martin.st>
Tue, 27 Oct 2020 11:09:08 +0000 (13:09 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 18 Dec 2020 09:24:52 +0000 (11:24 +0200)
commite83e0cac041bc071301f8399bb5c32b2529fc83f
tree845eef18cbb23929d55a9915c769ee1d341025ee
parent569676c05725d79909bd8a9224bc709bd621553c
[libcxx] Make filesystem::path::value_type wchar_t on windows

Also set the preferred separator to backslash.

libc++ doesn't compile successfully for windows prior to this change,
and this change on its own isn't enough to make it compile successfully
either, but is the first stepping stone towards making it work correctly.

Most of operations.cpp will need to be touched, both for calling
functions that take wchar paths, but also for using other windows
specific functions instead of the posix functions used so far; that is
handled in later commits.

Changing parts of operations.cpp to generalize the string type handling
in code that doesn't touch system functions.

Differential Revision: https://reviews.llvm.org/D91135
libcxx/include/filesystem
libcxx/src/filesystem/filesystem_common.h
libcxx/src/filesystem/operations.cpp