Home | History | Annotate | Download | only in Format

Lines Matching refs:Penalty

248   unsigned Penalty = 0;
250 Penalty = addTokenOnNewLine(State, DryRun);
254 return moveStateToNextToken(State, DryRun, Newline) + Penalty;
349 // Extra penalty that needs to be added because of the way certain line
351 unsigned Penalty = 0;
357 // The first line break on any NestingLevel causes an extra penalty in order
360 Penalty += 15;
363 Penalty += State.NextToken->SplitPenalty;
366 // short. Also always add the penalty if the LHS is split over mutliple lines
367 // to avoid unnecessary line breaks that just work around this penalty.
372 Penalty += Style.PenaltyBreakFirstLessLess;
469 return Penalty;
658 unsigned Penalty = breakProtrudingToken(Current, State, DryRun);
661 Penalty += Style.PenaltyExcessCharacter * ExcessCharacters;
672 Penalty += Previous->Role->formatAfterToken(State, this, DryRun);
674 return Penalty;
908 // We can only affect layout of the first and the last line, so the penalty
1017 unsigned Penalty = 0;
1030 // The last line's penalty is handled in addNextStateToQueue().
1032 Penalty += Style.PenaltyExcessCharacter *
1057 Penalty += Current.SplitPenalty;
1061 Penalty += Style.PenaltyExcessCharacter * (ColumnsUsed - ColumnLimit);
1080 Penalty += Current.isStringLiteral() ? Style.PenaltyBreakString
1085 return Penalty;