mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Provide a frontend option to disable typo correction.
rdar://29003217
This commit is contained in:
@@ -821,6 +821,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
= A->getOption().matches(OPT_enable_access_control);
|
||||
}
|
||||
|
||||
Opts.DisableTypoCorrection |= Args.hasArg(OPT_disable_typo_correction);
|
||||
|
||||
Opts.CodeCompleteInitsInPostfixExpr |=
|
||||
Args.hasArg(OPT_code_complete_inits_in_postfix_expr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user