Clang importer: Import ObjC 'id' as Swift 'Any' (behind a flag).

For experimentation purposes, add a flag to cause the Clang importer to map ObjC APIs using `id` to `Any` instead of `AnyObject`.
This commit is contained in:
Joe Groff
2016-06-23 13:23:40 -07:00
parent 55b8555c22
commit 231db9d108
7 changed files with 53 additions and 2 deletions

View File

@@ -776,6 +776,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.EnableThrowWithoutTry |= Args.hasArg(OPT_enable_throw_without_try);
Opts.EnableProtocolTypealiases |= Args.hasArg(OPT_enable_protocol_typealiases);
Opts.EnableIdAsAny |= Args.hasArg(OPT_enable_id_as_any);
if (auto A = Args.getLastArg(OPT_enable_objc_attr_requires_foundation_module,
OPT_disable_objc_attr_requires_foundation_module)) {