Lines Matching refs:Penalty
267 unsigned Penalty = 0; in addTokenToState() local
269 Penalty = addTokenOnNewLine(State, DryRun); in addTokenToState()
273 return moveStateToNextToken(State, DryRun, Newline) + Penalty; in addTokenToState()
388 unsigned Penalty = 0; in addTokenOnNewLine() local
397 Penalty += 15; in addTokenOnNewLine()
400 Penalty += State.NextToken->SplitPenalty; in addTokenOnNewLine()
409 Penalty += Style.PenaltyBreakFirstLessLess; in addTokenOnNewLine()
506 return Penalty; in addTokenOnNewLine()
694 unsigned Penalty = breakProtrudingToken(Current, State, DryRun); in moveStateToNextToken() local
697 Penalty += Style.PenaltyExcessCharacter * ExcessCharacters; in moveStateToNextToken()
708 Penalty += Previous->Role->formatAfterToken(State, this, DryRun); in moveStateToNextToken()
710 return Penalty; in moveStateToNextToken()
1002 unsigned Penalty = 0; in breakProtrudingToken() local
1017 Penalty += Style.PenaltyExcessCharacter * in breakProtrudingToken()
1042 Penalty += Current.SplitPenalty; in breakProtrudingToken()
1046 Penalty += Style.PenaltyExcessCharacter * (ColumnsUsed - ColumnLimit); in breakProtrudingToken()
1065 Penalty += Current.isStringLiteral() ? Style.PenaltyBreakString in breakProtrudingToken()
1070 return Penalty; in breakProtrudingToken()