Home
last modified time | relevance | path

Searched refs:DryRun (Results 1 – 6 of 6) sorted by relevance

/external/clang/lib/Format/
DUnwrappedLineFormatter.cpp338 bool DryRun, int AdditionalIndent, in format() argument
346 if (DryRun && CacheIt != PenaltyCache.end()) in format()
386 if (!DryRun) { in format()
396 if (PreviousLine && PreviousLine->Affected && !DryRun) { in format()
406 if (!DryRun) in format()
423 LineState State = Indenter->getInitialState(Indent, &TheLine, DryRun); in format()
425 formatChildren(State, /*Newline=*/false, DryRun, Penalty); in format()
426 Indenter->addTokenToState(State, /*Newline=*/false, DryRun); in format()
431 if (!DryRun) in format()
434 Penalty += format(TheLine, Indent, DryRun); in format()
[all …]
DContinuationIndenter.h48 bool DryRun);
66 unsigned addTokenToState(LineState &State, bool Newline, bool DryRun,
76 unsigned moveStateToNextToken(LineState &State, bool DryRun, bool Newline);
100 bool DryRun);
109 void addTokenOnCurrentLine(LineState &State, bool DryRun,
119 unsigned addTokenOnNewLine(LineState &State, bool DryRun);
DUnwrappedLineFormatter.h40 unsigned format(const SmallVectorImpl<AnnotatedLine *> &Lines, bool DryRun,
48 bool DryRun);
123 unsigned analyzeSolutionSpace(LineState &InitialState, bool DryRun = false);
154 bool formatChildren(LineState &State, bool NewLine, bool DryRun,
DContinuationIndenter.cpp72 bool DryRun) { in getInitialState() argument
88 moveStateToNextToken(State, DryRun, /*Newline=*/false); in getInitialState()
242 bool DryRun, in addTokenToState() argument
263 moveStateToNextToken(State, DryRun, /*Newline=*/false); in addTokenToState()
269 Penalty = addTokenOnNewLine(State, DryRun); in addTokenToState()
271 addTokenOnCurrentLine(State, DryRun, ExtraSpaces); in addTokenToState()
273 return moveStateToNextToken(State, DryRun, Newline) + Penalty; in addTokenToState()
276 void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun, in addTokenOnCurrentLine() argument
298 if (!DryRun) in addTokenOnCurrentLine()
382 bool DryRun) { in addTokenOnNewLine() argument
[all …]
DFormatToken.cpp61 bool DryRun) { in formatAfterToken() argument
109 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces); in formatAfterToken()
116 bool DryRun) { in formatFromToken() argument
DFormatToken.h450 bool DryRun) { in formatFromToken() argument
458 bool DryRun) { in formatAfterToken() argument
477 bool DryRun) override;
480 bool DryRun) override;