================
@@ -1533,9 +1533,11 @@ class OptimizingLineFormatter : public LineFormatter {
StateNode *Node = new (Allocator.Allocate())
StateNode(PreviousNode->State, NewLine, PreviousNode);
- if (!formatChildren(Node->State, NewLine, /*DryRun=*/true, Penalty))
+ unsigned ChildrenPenalty = 0;
----------------
yashaggarwal85d wrote:
It was unsigned because formatChildren() and format() still returned unsigned,
so the children's sum could wrap there too.
https://github.com/llvm/llvm-project/pull/236087
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits