[all-commits] [llvm/llvm-project] da45bd: [VFS] More consistent support for Windows

amccarth-google via All-commits all-commits at lists.llvm.org
Wed Feb 5 11:38:52 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da45bd232165eab5d6ec4f1f4f18db8644289142
      https://github.com/llvm/llvm-project/commit/da45bd232165eab5d6ec4f1f4f18db8644289142
  Author: Adrian McCarthy <amccarth at google.com>
  Date:   2020-02-05 (Wed, 05 Feb 2020)

  Changed paths:
    M clang/test/VFS/external-names.c
    M llvm/include/llvm/Support/VirtualFileSystem.h
    M llvm/lib/Support/VirtualFileSystem.cpp
    M llvm/unittests/Support/VirtualFileSystemTest.cpp

  Log Message:
  -----------
  [VFS] More consistent support for Windows

Removed some #ifdefs specific to Windows handling of VFS paths.  This
eliminates most of the differences between the Windows and non-Windows
code paths.

Making this work required some changes to account for the fact that VFS
file paths can be Posix style or Windows style, so you cannot just assume
that they use the host's native path style.  In one case, this means
implementing our own version of make_absolute, since the filesystem code
in Support doesn't have styles in the sense that the path code does.

Differential Review: https://reviews.llvm.org/D71092




More information about the All-commits mailing list