(i.e., 'export *'), to better match the semantics of headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145813
91177308-0d34-0410-b5e6-
96231b3b80d8
Module *Result = new Module(ModuleName, SourceLocation(),
/*IsFramework=*/true);
+ // umbrella "umbrella-header-name"
Result->UmbrellaHeader = UmbrellaHeader;
Headers[UmbrellaHeader] = Result;
UmbrellaDirs[FrameworkDir] = Result;
+
+ // export *
+ Result->Exports.push_back(Module::ExportDecl(0, true));
+
Modules[ModuleName] = Result;
return Result;
}
--- /dev/null
+#import <Module/Module.h> // expected-warning{{treating #import as an import of module 'Module'}}
+
# error DEPENDS_ON_MODULE should have been hidden
#endif
+Module *mod; // expected-error{{unknown type name 'Module'}}
+
+#import <AlsoDependsOnModule/AlsoDependsOnModule.h> // expected-warning{{treating #import as an import of module 'AlsoDependsOnModule'}}
+Module *mod2;
+