Introduce -no-strict-keyword-options in the frontend "just in case".

Swift SVN r17742
This commit is contained in:
Doug Gregor
2014-05-09 00:20:46 +00:00
parent fcd0816179
commit a23bafccb6
2 changed files with 10 additions and 1 deletions

View File

@@ -550,7 +550,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);
Opts.StrictKeywordArguments = Args.hasArg(OPT_strict_keyword_arguments);
if (auto A = Args.getLastArg(OPT_strict_keyword_arguments,
OPT_no_strict_keyword_arguments)) {
Opts.StrictKeywordArguments
= A->getOption().matches(OPT_strict_keyword_arguments);
}
if (Opts.SplitPrepositions) {
Opts.addBuildConfigOption("OBJC_SELECTOR_SPLITTING");