mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add -debug-constraints-on-line flag
This commit is contained in:
@@ -166,6 +166,10 @@ namespace swift {
|
||||
/// solver should be debugged.
|
||||
unsigned DebugConstraintSolverAttempt = 0;
|
||||
|
||||
/// Line numbers to activate the constraint solver debugger.
|
||||
/// Should be stored sorted.
|
||||
llvm::SmallVector<unsigned, 4> DebugConstraintSolverOnLines;
|
||||
|
||||
/// Enable named lazy member loading.
|
||||
bool NamedLazyMemberLoading = true;
|
||||
|
||||
|
||||
@@ -189,6 +189,12 @@ def debug_constraints : Flag<["-"], "debug-constraints">,
|
||||
def debug_constraints_attempt : Separate<["-"], "debug-constraints-attempt">,
|
||||
HelpText<"Debug the constraint solver at a given attempt">;
|
||||
|
||||
def debug_constraints_on_line : Separate<["-"], "debug-constraints-on-line">,
|
||||
HelpText<"Debug the constraint solver for expressions on <line>">,
|
||||
MetaVarName<"<line>">;
|
||||
def debug_constraints_on_line_EQ : Joined<["-"], "debug-constraints-on-line=">,
|
||||
Alias<debug_constraints_on_line>;
|
||||
|
||||
def disable_named_lazy_member_loading : Flag<["-"], "disable-named-lazy-member-loading">,
|
||||
HelpText<"Disable per-name lazy member loading">;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user