[coroutines] Support "coroutines" feature in module map requires clause
authorEric Fiselier <eric@efcs.ca>
Sun, 28 May 2017 21:07:22 +0000 (21:07 +0000)
committerEric Fiselier <eric@efcs.ca>
Sun, 28 May 2017 21:07:22 +0000 (21:07 +0000)
commite38cea026b92285c8d7acaaceed5c1dd2fa21b71
tree9043cd3cb8978b7cdeeb125180e85147bf308d38
parent09fcc2ce9b45b5c5437a4b62b9f632939fdfe79e
[coroutines] Support "coroutines" feature in module map requires clause

Summary: In order for libc++ to add `<experimental/coroutine>` to its module map, there has to be a feature that can be used to detect if coroutines support is enabled in Clang.

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D33538

llvm-svn: 304107
clang/docs/Modules.rst
clang/lib/Basic/Module.cpp
clang/test/Index/index-module.m
clang/test/Modules/Inputs/DependsOnModule.framework/Headers/coroutines.h [new file with mode: 0644]
clang/test/Modules/Inputs/DependsOnModule.framework/Headers/not_coroutines.h [new file with mode: 0644]
clang/test/Modules/Inputs/DependsOnModule.framework/module.map
clang/test/Modules/requires-coroutines.mm [new file with mode: 0644]