Lines Matching full:penalty
282 unsigned Penalty = 0;
284 Penalty = addTokenOnNewLine(State, DryRun);
288 return moveStateToNextToken(State, DryRun, Newline) + Penalty;
411 // Extra penalty that needs to be added because of the way certain line
413 unsigned Penalty = 0;
419 // The first line break on any NestingLevel causes an extra penalty in order
422 Penalty += 15;
425 Penalty += State.NextToken->SplitPenalty;
428 // short. Also always add the penalty if the LHS is split over mutliple lines
429 // to avoid unnecessary line breaks that just work around this penalty.
434 Penalty += Style.PenaltyBreakFirstLessLess;
551 return Penalty;
760 unsigned Penalty = breakProtrudingToken(Current, State, DryRun);
763 Penalty += Style.PenaltyExcessCharacter * ExcessCharacters;
774 Penalty += Previous->Role->formatAfterToken(State, this, DryRun);
776 return Penalty;
1005 // We can only affect layout of the first and the last line, so the penalty
1104 unsigned Penalty = 0;
1117 // The last line's penalty is handled in addNextStateToQueue().
1119 Penalty += Style.PenaltyExcessCharacter *
1144 Penalty += Current.SplitPenalty;
1148 Penalty += Style.PenaltyExcessCharacter * (ColumnsUsed - ColumnLimit);
1167 Penalty += Current.isStringLiteral() ? Style.PenaltyBreakString
1172 return Penalty;