Provide a frontend option to disable typo correction.

rdar://29003217
This commit is contained in:
John McCall
2016-11-02 14:08:56 -07:00
parent bfab9d607e
commit d123345689
4 changed files with 11 additions and 0 deletions

View File

@@ -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);