[Support] [Windows] Convert paths to the preferred form
authorMartin Storsjö <martin@martin.st>
Tue, 5 Oct 2021 10:17:36 +0000 (10:17 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Nov 2021 08:41:51 +0000 (10:41 +0200)
commitf4d83c56c99deb52769aab12bbd22b9bfeb0c617
treebd8bffc5c7a7a2d63df85ce941fd672b29914da5
parenta8b54834a186f5570b49b614e31b961a9cf1cbfe
[Support] [Windows] Convert paths to the preferred form

This normalizes most paths (except ones input from the user as command
line arguments) into the preferred form, if `real_style()` evaluates to
`windows_forward`.

Differential Revision: https://reviews.llvm.org/D111880
llvm/lib/Support/Windows/Path.inc
llvm/lib/Support/Windows/Process.inc
llvm/lib/Support/Windows/Program.inc
llvm/unittests/Support/CommandLineTest.cpp
llvm/unittests/Support/Path.cpp
llvm/unittests/Support/ProgramTest.cpp