Home
last modified time | relevance | path

Searched refs:Penalty (Results 1 – 5 of 5) sorted by relevance

/external/clang/lib/Format/
DUnwrappedLineFormatter.cpp350 unsigned Penalty = 0; in format() local
425 formatChildren(State, /*Newline=*/false, DryRun, Penalty); in format()
434 Penalty += format(TheLine, Indent, DryRun); in format()
471 PenaltyCache[CacheKey] = Penalty; in format()
472 return Penalty; in format()
571 unsigned Penalty = 0; in analyzeSolutionSpace() local
575 Penalty = Queue.top().first.first; in analyzeSolutionSpace()
578 DEBUG(llvm::dbgs() << "\n---\nPenalty for line: " << Penalty << "\n"); in analyzeSolutionSpace()
594 addNextStateToQueue(Penalty, Node, /*NewLine=*/false, &Count, &Queue); in analyzeSolutionSpace()
596 addNextStateToQueue(Penalty, Node, /*NewLine=*/true, &Count, &Queue); in analyzeSolutionSpace()
[all …]
DContinuationIndenter.cpp267 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()
[all …]
DUnwrappedLineFormatter.h131 void addNextStateToQueue(unsigned Penalty, StateNode *PreviousNode,
155 unsigned &Penalty);
DFormatToken.cpp87 unsigned Penalty = 0; in formatAfterToken() local
109 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces); in formatAfterToken()
111 return Penalty; in formatAfterToken()
/external/clang/docs/
DClangFormatStyleOptions.rst417 Penalty for putting the return type of a function onto its own