]> granicus.if.org Git - clang/commit
[Modules] Use vfs for (recursive) directory iteration
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 16 May 2016 16:46:01 +0000 (16:46 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 16 May 2016 16:46:01 +0000 (16:46 +0000)
commit5b47ec545407c684f23902320bd6efd5b888325d
treef3e51faa86e4b02b67d237bcae91f83af5151f91
parentf5aae6dda6cd7a7629c4396c3fa11f56dc369215
[Modules] Use vfs for (recursive) directory iteration

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.

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

rdar://problem/25880368

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269661 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/FrontendActions.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
test/Modules/crash-vfs-umbrella-frameworks.m