Lines Matching defs:DryRun

219   const AnnotatedLine *getNextMergedLine(bool DryRun,
233 if (!DryRun)
1004 /// If \p DryRun is \c false, directly applies the changes.
1006 unsigned FirstStartColumn, bool DryRun) = 0;
1013 /// \p Penalty as well as \p State. If \p DryRun is false, also directly
1029 bool formatChildren(LineState &State, bool NewLine, bool DryRun,
1046 BlockFormatter->format(Previous.Children, DryRun, AdditionalIndent,
1074 if (!DryRun) {
1081 formatLine(*Child, State.Column + 1, /*FirstStartColumn=*/0, DryRun);
1082 if (!DryRun)
1109 unsigned FirstStartColumn, bool DryRun) override {
1110 assert(!DryRun);
1112 &Line, /*DryRun=*/false);
1118 formatChildren(State, Newline, /*DryRun=*/false, Penalty);
1119 Indenter->addTokenToState(State, Newline, /*DryRun=*/false);
1135 unsigned FirstStartColumn, bool DryRun) override {
1138 Indenter->getInitialState(FirstIndent, FirstStartColumn, &Line, DryRun);
1140 formatChildren(State, /*NewLine=*/false, DryRun, Penalty);
1142 State, /*Newline=*/State.NextToken->MustBreakBefore, DryRun);
1160 unsigned FirstStartColumn, bool DryRun) override {
1162 Indenter->getInitialState(FirstIndent, FirstStartColumn, &Line, DryRun);
1170 return analyzeSolutionSpace(State, DryRun);
1213 /// If \p DryRun is \c false, directly applies the changes.
1214 unsigned analyzeSolutionSpace(LineState &InitialState, bool DryRun) {
1270 if (!DryRun)
1293 if (!formatChildren(Node->State, NewLine, /*DryRun=*/true, Penalty))
1313 formatChildren(State, Node->NewLine, /*DryRun=*/false, Penalty);
1333 const SmallVectorImpl<AnnotatedLine *> &Lines, bool DryRun,
1338 // Try to look up already computed penalty in DryRun-mode.
1342 if (DryRun && CacheIt != PenaltyCache.end())
1358 Joiner.getNextMergedLine(DryRun, IndentTracker);
1388 if (!DryRun) {
1394 NextLine = Joiner.getNextMergedLine(DryRun, IndentTracker);
1406 FirstLine ? FirstStartColumn : 0, DryRun);
1410 FirstLine ? FirstStartColumn : 0, DryRun);
1414 FirstLine ? FirstStartColumn : 0, DryRun);
1423 format(Tok->Children, DryRun);
1432 if (!DryRun) {
1450 NextLine = Joiner.getNextMergedLine(DryRun, IndentTracker);
1453 if (!DryRun)