This is an archive of the discontinued LLVM Phabricator instance.

[Support] [VirtualFileSystem] Detect the windows_slash path style
ClosedPublic

Authored by mstorsjo on Nov 5 2021, 5:31 AM.

Details

Summary

This fixes the following clang VFS tests, if windows_slash is the
default style:

Clang :: VFS/implicit-include.c
Clang :: VFS/relative-path.c
Clang-Unit :: Frontend/./FrontendTests.exe/CompilerInstance.DefaultVFSOverlayFromInvocation

Also clarify a couple references to Style::windows into
Style::windows_backslash, to make it clearer that each of them are
opinionated in different directions (even if it doesn't matter for
calls to e.g. is_absolute).

Diff Detail

Event Timeline

mstorsjo created this revision.Nov 5 2021, 5:31 AM
mstorsjo requested review of this revision.Nov 5 2021, 5:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 5:31 AM
This revision is now accepted and ready to land.Nov 8 2021, 9:45 AM
This revision was landed with ongoing or failed builds.Nov 8 2021, 12:22 PM
This revision was automatically updated to reflect the committed changes.