// Collect module map headers.
// Walks the modules and collects referenced headers into
-// ModuleMapHeadersSet.
+// HeaderFileNames.
bool ModularizeUtilities::collectModuleMapHeaders(clang::ModuleMap *ModMap) {
for (ModuleMap::module_iterator I = ModMap->module_begin(),
E = ModMap->module_end();
// Collect referenced headers from one module.
// Collects the headers referenced in the given module into
-// HeaderFileNames and ModuleMapHeadersSet.
+// HeaderFileNames.
bool ModularizeUtilities::collectModuleHeaders(const Module &Mod) {
// Ignore explicit modules because they often have dependencies
std::string HeaderPath = getCanonicalPath(UmbrellaHeader->getName());
// Collect umbrella header.
HeaderFileNames.push_back(HeaderPath);
- ModuleMapHeadersSet.insert(HeaderPath);
// FUTURE: When needed, umbrella header header collection goes here.
}
continue;
// Save header name.
std::string HeaderPath = getCanonicalPath(File);
- ModuleMapHeadersSet.insert(HeaderPath);
Dependents.push_back(HeaderPath);
}
return true;
llvm::SmallVector<std::string, 32> HeaderFileNames;
/// Map of top-level header file dependencies.
DependencyMap Dependencies;
- /// Set of all the headers found in the module map.
- llvm::StringSet<llvm::MallocAllocator> ModuleMapHeadersSet;
// Functions.
/// Collect module Map headers.
/// Walks the modules and collects referenced headers into
- /// ModuleMapHeadersSet.
+ /// HeaderFileNames.
/// \param ModMap A loaded module map object.
/// \return True if no errors.
bool collectModuleMapHeaders(clang::ModuleMap *ModMap);
/// Collect referenced headers from one module.
/// Collects the headers referenced in the given module into
- /// HeaderFileNames and ModuleMapHeadersSet.
+ /// HeaderFileNames.
/// \param Mod The module reference.
/// \return True if no errors.
bool collectModuleHeaders(const clang::Module &Mod);