Add -no-implicit-objc-with for when we switch the default <rdar://problem/16795899>.

Swift SVN r17783
This commit is contained in:
Doug Gregor
2014-05-09 16:36:54 +00:00
parent b6e915e7e5
commit 9da6df267a
3 changed files with 13 additions and 3 deletions

View File

@@ -549,7 +549,12 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.EnableAppExtensionRestrictions = Args.hasArg(OPT_enable_app_extension);
Opts.SplitPrepositions = Args.hasArg(OPT_split_objc_selectors);
Opts.ImplicitObjCWith = Args.hasArg(OPT_implicit_objc_with);
if (auto A = Args.getLastArg(OPT_implicit_objc_with,
OPT_no_implicit_objc_with)) {
Opts.ImplicitObjCWith
= A->getOption().matches(OPT_implicit_objc_with);
}
if (auto A = Args.getLastArg(OPT_strict_keyword_arguments,
OPT_no_strict_keyword_arguments)) {