HomeSort by relevance Sort by last modified time
    Searched refs:Penalty (Results 1 - 3 of 3) sorted by null

  /external/clang/lib/Format/
UnwrappedLineFormatter.cpp 482 /// \brief Formats an \c AnnotatedLine and returns the penalty.
493 /// \p Penalty as well as \p State. If \p DryRun is false, also directly
510 unsigned &Penalty) {
523 Penalty +=
557 Penalty += formatLine(*Previous.Children[0], State.Column + 1, DryRun);
591 unsigned Penalty = 0;
592 formatChildren(State, Newline, /*DryRun=*/false, Penalty);
610 unsigned Penalty = 0;
613 formatChildren(State, /*Newline=*/false, DryRun, Penalty);
616 return Penalty;
    [all...]
FormatToken.cpp 96 // bin-packed. Add a severe penalty to this so that column layouts are
102 unsigned Penalty = 0;
123 // Place token using the continuation indenter and store the penalty.
124 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces);
126 return Penalty;
ContinuationIndenter.cpp 282 unsigned Penalty = 0;
284 Penalty = addTokenOnNewLine(State, DryRun);
288 return moveStateToNextToken(State, DryRun, Newline) + Penalty;
411 // Extra penalty that needs to be added because of the way certain line
413 unsigned Penalty = 0;
419 // The first line break on any NestingLevel causes an extra penalty in order
422 Penalty += 15;
425 Penalty += State.NextToken->SplitPenalty;
428 // short. Also always add the penalty if the LHS is split over mutliple lines
429 // to avoid unnecessary line breaks that just work around this penalty
    [all...]

Completed in 68 milliseconds