[PATCH] D20266: [Modules] Use vfs for (recursive) directory iteration

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Fri May 13 17:59:18 PDT 2016


bruno created this revision.
bruno added a reviewer: benlangmuir.
bruno added a subscriber: cfe-commits.

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.

http://reviews.llvm.org/D20266

Files:
  lib/Frontend/FrontendActions.cpp
  lib/Lex/HeaderSearch.cpp
  lib/Lex/ModuleMap.cpp
  test/Modules/crash-vfs-umbrella-frameworks.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20266.57276.patch
Type: text/x-patch
Size: 6803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160514/4b13c549/attachment.bin>


More information about the cfe-commits mailing list