Skip to content

Commit 91291c7

Browse files
gregomnihborla
authored andcommitted
Dump disjunction possibilities on multiple aligned lines for better readability.
1 parent cb64d7f commit 91291c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/Sema/Constraint.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,17 @@ void Constraint::print(llvm::raw_ostream &Out, SourceManager *sm) const {
317317
Locator->dump(sm, Out);
318318
Out << "]]";
319319
}
320-
Out << ":";
320+
Out << ":\n";
321321

322322
interleave(getNestedConstraints(),
323323
[&](Constraint *constraint) {
324324
if (constraint->isDisabled())
325-
Out << "[disabled] ";
325+
Out << "> [disabled] ";
326+
else
327+
Out << "> ";
326328
constraint->print(Out, sm);
327329
},
328-
[&] { Out << " or "; });
330+
[&] { Out << "\n"; });
329331
return;
330332
}
331333

0 commit comments

Comments
 (0)