Skip to content

Commit fcf742c

Browse files
committed
Dump disjunction possibilities on multiple aligned lines for better readability.
1 parent 136b5de commit fcf742c

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
@@ -274,15 +274,17 @@ void Constraint::print(llvm::raw_ostream &Out, SourceManager *sm) const {
274274
Locator->dump(sm, Out);
275275
Out << "]]";
276276
}
277-
Out << ":";
277+
Out << ":\n";
278278

279279
interleave(getNestedConstraints(),
280280
[&](Constraint *constraint) {
281281
if (constraint->isDisabled())
282-
Out << "[disabled] ";
282+
Out << "> [disabled] ";
283+
else
284+
Out << "> ";
283285
constraint->print(Out, sm);
284286
},
285-
[&] { Out << " or "; });
287+
[&] { Out << "\n"; });
286288
return;
287289
}
288290

0 commit comments

Comments
 (0)