OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
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
97
// bin-packed. Add a severe
penalty
to this so that column layouts are
103
unsigned
Penalty
= 0;
124
// Place token using the continuation indenter and store the
penalty
.
125
Penalty
+= Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces);
127
return
Penalty
;
ContinuationIndenter.cpp
303
unsigned
Penalty
= 0;
305
Penalty
= addTokenOnNewLine(State, DryRun);
309
return moveStateToNextToken(State, DryRun, Newline) +
Penalty
;
444
// Extra
penalty
that needs to be added because of the way certain line
446
unsigned
Penalty
= 0;
452
// The first line break on any NestingLevel causes an extra
penalty
in order
455
Penalty
+= 15;
458
Penalty
+= State.NextToken->SplitPenalty;
461
// short. Also always add the
penalty
if the LHS is split over mutliple lines
462
// to avoid unnecessary line breaks that just work around this
penalty
[
all
...]
Completed in 109 milliseconds