Lines Matching refs:Penalty
248 unsigned Penalty = 0; in addTokenToState() local
250 Penalty = addTokenOnNewLine(State, DryRun); in addTokenToState()
254 return moveStateToNextToken(State, DryRun, Newline) + Penalty; in addTokenToState()
351 unsigned Penalty = 0; in addTokenOnNewLine() local
360 Penalty += 15; in addTokenOnNewLine()
363 Penalty += State.NextToken->SplitPenalty; in addTokenOnNewLine()
372 Penalty += Style.PenaltyBreakFirstLessLess; in addTokenOnNewLine()
469 return Penalty; in addTokenOnNewLine()
658 unsigned Penalty = breakProtrudingToken(Current, State, DryRun); in moveStateToNextToken() local
661 Penalty += Style.PenaltyExcessCharacter * ExcessCharacters; in moveStateToNextToken()
672 Penalty += Previous->Role->formatAfterToken(State, this, DryRun); in moveStateToNextToken()
674 return Penalty; in moveStateToNextToken()
1017 unsigned Penalty = 0; in breakProtrudingToken() local
1032 Penalty += Style.PenaltyExcessCharacter * in breakProtrudingToken()
1057 Penalty += Current.SplitPenalty; in breakProtrudingToken()
1061 Penalty += Style.PenaltyExcessCharacter * (ColumnsUsed - ColumnLimit); in breakProtrudingToken()
1080 Penalty += Current.isStringLiteral() ? Style.PenaltyBreakString in breakProtrudingToken()
1085 return Penalty; in breakProtrudingToken()