Add a "-swift3-migration" frontend option and corresponding language option.

This is intended to enable various Fix-Its to perform the one-way
migration from Swift 2.x to Swift 3, with a focus on the issues
involving naming.
This commit is contained in:
Doug Gregor
2016-01-13 22:46:10 -08:00
parent 12d6f02c45
commit 657319903e
4 changed files with 15 additions and 1 deletions

View File

@@ -738,6 +738,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
if (Opts.DebuggerSupport)
Opts.EnableDollarIdentifiers = true;
Opts.Playground |= Args.hasArg(OPT_playground);
Opts.Swift3Migration |= Args.hasArg(OPT_swift3_migration);
Opts.WarnOmitNeedlessWords = Args.hasArg(OPT_warn_omit_needless_words);
Opts.EnableThrowWithoutTry |= Args.hasArg(OPT_enable_throw_without_try);