Douglas Gregor f5eedd05db Implement support for wildcard exports in modules, allowing a module
to re-export anything that it imports. This opt-in feature makes a
module behave more like a header, because it can be used to re-export
the transitive closure of a (sub)module's dependencies.

llvm-svn: 145811
2011-12-05 17:28:06 +00:00

21 lines
289 B
Plaintext

module A {
module One { header "A_one.h" }
module Two { header "A_two.h" }
}
module B {
module One { header "B_one.h" }
module Two { header "B_two.h" }
}
module C {
module One {
header "C_one.h"
export A.*
}
module Two {
header "C_two.h"
export *
}
}