diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-12 19:13:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-12 19:13:53 +0000 |
commit | 3b29bb99948f9e8b4a4e829445c753f6858f607e (patch) | |
tree | 6a021ce0641b5b33900990a94e6d3bd93adc84fb /lib/Frontend/FrontendActions.cpp | |
parent | 4cd9b8f7fb2cebf614e6e2bc766fad27ffd2e9de (diff) |
When we have an umbrella directory in a module map, recursively walk
the subdirectories to find headers in submodules.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | lib/Frontend/FrontendActions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/FrontendActions.cpp b/lib/Frontend/FrontendActions.cpp index 5dabe81996..a97a32ba06 100644 --- a/lib/Frontend/FrontendActions.cpp +++ b/lib/Frontend/FrontendActions.cpp @@ -161,7 +161,8 @@ static void collectModuleHeaderIncludes(const LangOptions &LangOpts, llvm::error_code EC; llvm::SmallString<128> DirNative; llvm::sys::path::native(UmbrellaDir->getName(), DirNative); - for (llvm::sys::fs::directory_iterator Dir(DirNative.str(), EC), DirEnd; + for (llvm::sys::fs::recursive_directory_iterator Dir(DirNative.str(), EC), + DirEnd; Dir != DirEnd && !EC; Dir.increment(EC)) { // Check whether this entry has an extension typically associated with // headers. |