[PATCH] D11944: Nativize filename in FileManager::getFile().
Yaron Keren via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 05:37:53 PDT 2015
yaron.keren added a comment.
I think she wishes your second option.
Note that windows API actually do accept slash as seperator and need no conversion.
The issues are with apps that interpret slash as switch, mainly the VC toolchain and with humans that may expect to see backward slashes. Not all apps do. Windows ports of the gnu utils accept slash just fine, so both
work running from cmd.exe. So lit tests can continue to use slash unless they call the real VC toolchain (in which case they can't run on non-Windows anyhow).
As for the humans, while it may make sense to backward-slash paths when printing diagnostics, the current output is a mix of whatever-was-used-as-input, slashes and backslahses depending on the code path so any standardization - slash or backslash - would be better.
Overall, this makes sense and will simplify code and tests.
More information about the cfe-commits