This is an archive of the discontinued LLVM Phabricator instance.

[VFS] Let the user decide if they want path normalization.
ClosedPublic

Authored by bkramer on Oct 12 2015, 8:43 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

bkramer updated this revision to Diff 37120.Oct 12 2015, 8:43 AM
bkramer retitled this revision from to [VFS] Let the user decide if they want path normalization..
bkramer updated this object.
bkramer added a reviewer: klimek.
bkramer added a subscriber: cfe-commits.
klimek added inline comments.Oct 12 2015, 9:07 AM
include/clang/Basic/VirtualFileSystem.h
276 ↗(On Diff #37120)

I'd use an in class initializer.

282 ↗(On Diff #37120)

Document in which cases false can happen (or return a status).

bkramer updated this revision to Diff 37124.Oct 12 2015, 9:10 AM

Addressed review comments.

klimek accepted this revision.Oct 12 2015, 9:17 AM
klimek edited edge metadata.

lg

include/clang/Basic/VirtualFileSystem.h
282 ↗(On Diff #37124)

Here, too!

This revision is now accepted and ready to land.Oct 12 2015, 9:17 AM
This revision was automatically updated to reflect the committed changes.