]> granicus.if.org Git - clang/commit
[VFS] Let the user decide if they want path normalization.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Oct 2015 16:16:39 +0000 (16:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Oct 2015 16:16:39 +0000 (16:16 +0000)
commitdf3ac5aa4a59d4f654dd34d0a2e4faf55a376a96
tree8c60412886bed05ec688aaae4d0087cad0b10b86
parent41af455f5e41fe2319d16ec7c96f074524a98974
[VFS] Let the user decide if they want path normalization.

This is a more principled version of what I did earlier. Path
normalization is generally a good thing, but may break users in strange
environments, e. g. using lots of symlinks. Let the user choose and
default it to on.

This also changes adding a duplicated file into returning an error if
the file contents are different instead of an assertion failure.

Differential Revision: http://reviews.llvm.org/D13658

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