Allow a header to be part of multiple modules.This patch changes two things:a) Allow a header to be part of multiple modules. The reasoning is thatin existing codebases that have a module-like b
Allow a header to be part of multiple modules.This patch changes two things:a) Allow a header to be part of multiple modules. The reasoning is thatin existing codebases that have a module-like build system, the sameheaders might be used in several build targets. Simple reasons might bethat they defined different classes that are declared in the sameheader. Supporting a header as a part of multiple modules will make thetransistion easier for those cases. A later step in clang can thendetermine whether the two modules are actually compatible and can bemerged and error out appropriately. The later check is similar to whatneeds to be done for template specializations anyway.b) Allow modules to be stored in a directory tree separate from theheaders they describe.Review: http://llvm-reviews.chandlerc.com/D1951llvm-svn: 193151
show more ...