]> granicus.if.org Git - clang/commit
[vfs] Normalize working directory if requested.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 9 Jan 2016 16:33:16 +0000 (16:33 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 9 Jan 2016 16:33:16 +0000 (16:33 +0000)
commitd3306b717c211f177eaeec46afdb966894572f2b
tree9db43c7e878af9ed3266b71d228624babcbf7dea
parentd9228ef3ed3a24509ae7314610210f61432948a9
[vfs] Normalize working directory if requested.

FixedCompilationDatabase sets the working dir to "." by default. For
chdir(".") this is a noop but this lead to InMemoryFileSystem to create
bogus paths. Fixes PR25327.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257260 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/VirtualFileSystem.h
lib/Basic/VirtualFileSystem.cpp
unittests/Basic/VirtualFileSystemTest.cpp