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