mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user