[clang-tools-extra] r223098 - Update and simplify to match Clang r223095.
Richard Smith
richard-llvm at metafoo.co.uk
Mon Dec 1 16:32:02 PST 2014
Author: rsmith
Date: Mon Dec 1 18:32:02 2014
New Revision: 223098
URL: http://llvm.org/viewvc/llvm-project?rev=223098&view=rev
Log:
Update and simplify to match Clang r223095.
Modified:
clang-tools-extra/trunk/module-map-checker/ModuleMapChecker.cpp
Modified: clang-tools-extra/trunk/module-map-checker/ModuleMapChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/module-map-checker/ModuleMapChecker.cpp?rev=223098&r1=223097&r2=223098&view=diff
==============================================================================
--- clang-tools-extra/trunk/module-map-checker/ModuleMapChecker.cpp (original)
+++ clang-tools-extra/trunk/module-map-checker/ModuleMapChecker.cpp Mon Dec 1 18:32:02 2014
@@ -331,20 +331,9 @@ bool ModuleMapChecker::collectModuleHead
return false;
}
- for (unsigned I = 0, N = Mod.NormalHeaders.size(); I != N; ++I) {
- ModuleMapHeadersSet.insert(
- getCanonicalPath(Mod.NormalHeaders[I]->getName()));
- }
-
- for (unsigned I = 0, N = Mod.ExcludedHeaders.size(); I != N; ++I) {
- ModuleMapHeadersSet.insert(
- getCanonicalPath(Mod.ExcludedHeaders[I]->getName()));
- }
-
- for (unsigned I = 0, N = Mod.PrivateHeaders.size(); I != N; ++I) {
- ModuleMapHeadersSet.insert(
- getCanonicalPath(Mod.PrivateHeaders[I]->getName()));
- }
+ for (auto &HeaderKind : Mod.Headers)
+ for (auto &Header : HeaderKind)
+ ModuleMapHeadersSet.insert(getCanonicalPath(Header.Entry->getName()));
for (Module::submodule_const_iterator MI = Mod.submodule_begin(),
MIEnd = Mod.submodule_end();
More information about the cfe-commits
mailing list