Lines Matching refs:Penalty
303 unsigned Penalty = 0;
305 Penalty = addTokenOnNewLine(State, DryRun);
309 return moveStateToNextToken(State, DryRun, Newline) + Penalty;
444 // Extra penalty that needs to be added because of the way certain line
446 unsigned Penalty = 0;
452 // The first line break on any NestingLevel causes an extra penalty in order
455 Penalty += 15;
458 Penalty += State.NextToken->SplitPenalty;
461 // short. Also always add the penalty if the LHS is split over mutliple lines
462 // to avoid unnecessary line breaks that just work around this penalty.
467 Penalty += Style.PenaltyBreakFirstLessLess;
593 return Penalty;
806 unsigned Penalty = breakProtrudingToken(Current, State, DryRun);
809 Penalty += Style.PenaltyExcessCharacter * ExcessCharacters;
820 Penalty += Previous->Role->formatAfterToken(State, this, DryRun);
822 return Penalty;
1059 // We can only affect layout of the first and the last line, so the penalty
1159 unsigned Penalty = 0;
1172 // The last line's penalty is handled in addNextStateToQueue().
1174 Penalty += Style.PenaltyExcessCharacter *
1199 Penalty += Current.SplitPenalty;
1203 Penalty += Style.PenaltyExcessCharacter * (ColumnsUsed - ColumnLimit);
1222 Penalty += Current.isStringLiteral() ? Style.PenaltyBreakString
1227 return Penalty;