Enable string processing by default.

Make frontend flag `-enable-experimental-string-processing` default to true.
This commit is contained in:
Richard Wei
2022-04-12 14:34:58 -07:00
parent 98574641bd
commit 94e8f5393e
54 changed files with 179 additions and 108 deletions

View File

@@ -607,8 +607,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
// Determine whether string processing is enabled
Opts.EnableExperimentalStringProcessing =
Args.hasFlag(OPT_enable_experimental_string_processing,
OPT_disable_experimental_string_processing,
Args.hasArg(OPT_enable_bare_slash_regex));
OPT_disable_experimental_string_processing);
// Add a future feature if it is not already implied by the language version.
auto addFutureFeatureIfNotImplied = [&](Feature feature) {