[cfe-commits] [PATCH] Handle windows drives in FileManager::getDirectory

Aaron Ballman aaron at aaronballman.com
Sun Feb 12 08:27:56 PST 2012


On Sun, Feb 12, 2012 at 8:29 AM, Nico Rieck <nico.rieck at googlemail.com> wrote:
> Hello,
>
> this patch fixes loading files on Windows with a path without
> subdirectories (like 'C:\foo.cpp'). Without the patch, the trailing path
> separator is stripped and stat() fails for 'C:'.

It could use an extra test case for a root without the separator (c:)
Aside from that, I think the patch looks good.

~Aaron



More information about the cfe-commits mailing list