Add -fmodule-map-file option.
authorDaniel Jasper <djasper@google.com>
Tue, 24 Sep 2013 09:27:13 +0000 (09:27 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 24 Sep 2013 09:27:13 +0000 (09:27 +0000)
commitca9f73812c998559c53b8215f868152caf68e2cf
tree4f73cc4d41580fe4fe0f1577d41911217bc239ae
parentba7f2f7110c201e3564e89bd306e058aa9c6b881
Add -fmodule-map-file option.

With this option, arbitrarily named module map files can be specified
to be loaded as required for headers in the respective (sub)directories.

This, together with the extern module declaration allows for specifying
module maps in a modular fashion without the need for files called
"module.map".

Among other things, this allows a directory to contain two modules that
are completely independent of one another.

Review: http://llvm-reviews.chandlerc.com/D1697.
llvm-svn: 191284
clang/docs/Modules.rst
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Lex/HeaderSearchOptions.h
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Lex/HeaderSearch.cpp
clang/test/Modules/Inputs/modular_maps/modulea.map [moved from clang/test/Modules/Inputs/modular_maps/module.map with 100% similarity]
clang/test/Modules/modular_maps.cpp