mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Add -max-substitution-count= and -max-substitution-depth= frontend flags
This commit is contained in:
@@ -1758,6 +1758,11 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
if (Args.hasArg(OPT_enable_requirement_machine_opaque_archetypes))
|
||||
Opts.EnableRequirementMachineOpaqueArchetypes = true;
|
||||
|
||||
setUnsignedIntegerArgument(OPT_max_substitution_depth,
|
||||
Opts.MaxSubstitutionDepth);
|
||||
setUnsignedIntegerArgument(OPT_max_substitution_count,
|
||||
Opts.MaxSubstitutionCount);
|
||||
|
||||
if (Args.hasArg(OPT_enable_experimental_lifetime_dependence_inference))
|
||||
Opts.EnableExperimentalLifetimeDependenceInference = true;
|
||||
if (Args.hasArg(OPT_disable_experimental_lifetime_dependence_inference))
|
||||
|
||||
Reference in New Issue
Block a user