Sema: introduce a language option flag, DiagnosticsEditorMode. (#7982)

SourceKit always sets it positively. This may lead to more aggressive fixits however
less informative messages. We currently use the flag only for filling protocol stubs.
This commit is contained in:
Xi Ge
2017-03-08 12:46:02 -08:00
committed by GitHub
parent 66fc4030e6
commit b5256f53b2
8 changed files with 50 additions and 2 deletions

View File

@@ -837,6 +837,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.UseMalloc |= Args.hasArg(OPT_use_malloc);
Opts.DiagnosticsEditorMode |= Args.hasArg(OPT_diagnostics_editor_mode);
Opts.EnableExperimentalPropertyBehaviors |=
Args.hasArg(OPT_enable_experimental_property_behaviors);