Instead, mark the module as unavailable so that clang errors as soon as someone tries to build this module. This works towards the long-term goal of not stat'ing the header files at all while reading the module map and instead read them only when the module is being built (there is a corresponding FIXME in parseHeaderDecl()). However, it seems non-trivial to get there and this unblock us and moves us into the right direction. Also changed the implementation to reuse the same DiagnosticsEngine. llvm-svn: 197485
18 lines
461 B
Plaintext
18 lines
461 B
Plaintext
module std {
|
|
module vector { header "vector.h" }
|
|
module type_traits { header "type_traits.h" }
|
|
explicit module hash_map { header "hash_map.h" }
|
|
}
|
|
|
|
module import_self {
|
|
module a { header "import-self-a.h" }
|
|
module b { header "import-self-b.h" export * }
|
|
module c { header "import-self-c.h" }
|
|
module d { header "import-self-d.h" }
|
|
}
|
|
|
|
module missing_headers {
|
|
module missing { header "missing.h" }
|
|
module not_missing { header "not_missing.h" }
|
|
}
|