diff options
author | Laszlo Csomor <laszlocsomor@google.com> | 2017-01-10 10:05:31 +0000 |
---|---|---|
committer | Marcel Hlopko <hlopko@google.com> | 2017-01-10 10:24:25 +0000 |
commit | 12bf5ba34f70200eccc9e5f9b2f27d91d4514d77 (patch) | |
tree | 64e9244afbe355383accb1da4bb13f928cb799bf /src/main/cpp/blaze.h | |
parent | 56bc3cbf0e87423e815422d1c6e02846af74c0bf (diff) |
Bazel client: move NormalizePath to Windows code
This method was only used by the Windows-specific
code so move it there and adapt it to Windows
paths.
Update AsWindowsPath to normalize its output: this
is necessary because AsWindowsPath's output is a
widechar path string which we often prefix with
the UNC prefix, but such paths must be normalized
(the kernel won't do it if the path has an UNC
prefix).
Finally, add an AsWindowsPathWithUncPrefix method
which does what the name suggests: converts the
path to Windows path, makes it absolute, and adds
the UNC prefix if necessary. (This is a very common
operation when calling WinAPI functions and we'll
use it a lot in subsequent changes.)
See https://github.com/bazelbuild/bazel/issues/2107
--
PiperOrigin-RevId: 144060297
MOS_MIGRATED_REVID=144060297
Diffstat (limited to 'src/main/cpp/blaze.h')
0 files changed, 0 insertions, 0 deletions