Lines Matching refs:Penalty
282 unsigned Penalty = 0; in addTokenToState() local
284 Penalty = addTokenOnNewLine(State, DryRun); in addTokenToState()
288 return moveStateToNextToken(State, DryRun, Newline) + Penalty; in addTokenToState()
413 unsigned Penalty = 0; in addTokenOnNewLine() local
422 Penalty += 15; in addTokenOnNewLine()
425 Penalty += State.NextToken->SplitPenalty; in addTokenOnNewLine()
434 Penalty += Style.PenaltyBreakFirstLessLess; in addTokenOnNewLine()
551 return Penalty; in addTokenOnNewLine()
760 unsigned Penalty = breakProtrudingToken(Current, State, DryRun); in moveStateToNextToken() local
763 Penalty += Style.PenaltyExcessCharacter * ExcessCharacters; in moveStateToNextToken()
774 Penalty += Previous->Role->formatAfterToken(State, this, DryRun); in moveStateToNextToken()
776 return Penalty; in moveStateToNextToken()
1104 unsigned Penalty = 0; in breakProtrudingToken() local
1119 Penalty += Style.PenaltyExcessCharacter * in breakProtrudingToken()
1144 Penalty += Current.SplitPenalty; in breakProtrudingToken()
1148 Penalty += Style.PenaltyExcessCharacter * (ColumnsUsed - ColumnLimit); in breakProtrudingToken()
1167 Penalty += Current.isStringLiteral() ? Style.PenaltyBreakString in breakProtrudingToken()
1172 return Penalty; in breakProtrudingToken()