Lines Matching defs:DryRun
219 const AnnotatedLine *getNextMergedLine(bool DryRun,
233 if (!DryRun)
1095 /// If \p DryRun is \c false, directly applies the changes.
1097 unsigned FirstStartColumn, bool DryRun) = 0;
1104 /// \p Penalty as well as \p State. If \p DryRun is false, also directly
1120 bool formatChildren(LineState &State, bool NewLine, bool DryRun,
1137 BlockFormatter->format(Previous.Children, DryRun, AdditionalIndent,
1165 if (!DryRun) {
1172 formatLine(*Child, State.Column + 1, /*FirstStartColumn=*/0, DryRun);
1173 if (!DryRun)
1200 unsigned FirstStartColumn, bool DryRun) override {
1201 assert(!DryRun);
1203 &Line, /*DryRun=*/false);
1209 formatChildren(State, Newline, /*DryRun=*/false, Penalty);
1210 Indenter->addTokenToState(State, Newline, /*DryRun=*/false);
1226 unsigned FirstStartColumn, bool DryRun) override {
1229 Indenter->getInitialState(FirstIndent, FirstStartColumn, &Line, DryRun);
1231 formatChildren(State, /*NewLine=*/false, DryRun, Penalty);
1233 State, /*Newline=*/State.NextToken->MustBreakBefore, DryRun);
1251 unsigned FirstStartColumn, bool DryRun) override {
1253 Indenter->getInitialState(FirstIndent, FirstStartColumn, &Line, DryRun);
1261 return analyzeSolutionSpace(State, DryRun);
1304 /// If \p DryRun is \c false, directly applies the changes.
1305 unsigned analyzeSolutionSpace(LineState &InitialState, bool DryRun) {
1361 if (!DryRun)
1384 if (!formatChildren(Node->State, NewLine, /*DryRun=*/true, Penalty))
1404 formatChildren(State, Node->NewLine, /*DryRun=*/false, Penalty);
1424 const SmallVectorImpl<AnnotatedLine *> &Lines, bool DryRun,
1429 // Try to look up already computed penalty in DryRun-mode.
1433 if (DryRun && CacheIt != PenaltyCache.end())
1449 Joiner.getNextMergedLine(DryRun, IndentTracker);
1479 if (!DryRun) {
1485 NextLine = Joiner.getNextMergedLine(DryRun, IndentTracker);
1497 FirstLine ? FirstStartColumn : 0, DryRun);
1501 FirstLine ? FirstStartColumn : 0, DryRun);
1505 FirstLine ? FirstStartColumn : 0, DryRun);
1514 format(Tok->Children, DryRun);
1523 if (!DryRun) {
1541 NextLine = Joiner.getNextMergedLine(DryRun, IndentTracker);
1544 if (!DryRun)