]> granicus.if.org Git - clang/commit
[Modules] Allow missing header before a missing requirement
authorBen Langmuir <blangmuir@apple.com>
Mon, 13 Jul 2015 19:48:52 +0000 (19:48 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 13 Jul 2015 19:48:52 +0000 (19:48 +0000)
commit8d6fe9684749c68f6832f2873b57dde03ae4b3fb
tree3e3e4b269376258233cc3fa1ceab9d9c00929406
parentea5f7026ebac878ea9ba94e4f66fcf43986ae2ce
[Modules] Allow missing header before a missing requirement

And make the module unavailable without breaking any parent modules.

If there's a missing requirement after we've already seen a missing
header, still update the IsMissingRequiement bit correctly.  Also,
diagnose missing requirements before missing headers, since the
existence of the header is moot if there are missing requirements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Module.cpp
test/Modules/Inputs/module.map
test/Modules/requires.m