This is an archive of the discontinued LLVM Phabricator instance.

[Modules] Use vfs for (recursive) directory iteration
ClosedPublic

Authored by bruno on May 13 2016, 5:59 PM.

Details

Summary

Clang performs directory walk while searching headers inside modules by
using the ::sys::fs instead of ::vfs. This prevents any code that uses
the VFS (e.g, reproducer scripts) to actually find such headers, since
the VFS will never be searched for those.

Change these places to use vfs::recursive_directory_iterator and
vfs::directory_iterator instead.

Diff Detail

Event Timeline

bruno updated this revision to Diff 57276.May 13 2016, 5:59 PM
bruno retitled this revision from to [Modules] Use vfs for (recursive) directory iteration.
bruno updated this object.
bruno added a reviewer: benlangmuir.
bruno added a subscriber: cfe-commits.
benlangmuir accepted this revision.May 16 2016, 8:44 AM
benlangmuir edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 16 2016, 8:44 AM
bruno closed this revision.May 31 2016, 11:58 AM

Committed in r269661