Lines Matching full:spaces
37 int Spaces, unsigned StartOfTokenColumn,
47 ContinuesPPDirective(ContinuesPPDirective), Spaces(Spaces),
54 unsigned Spaces,
61 Spaces, StartOfTokenColumn, Newlines, "", "",
71 Tok.WhitespaceRange, /*Spaces=*/0,
91 unsigned Newlines, int Spaces) {
97 SourceRange(Start, Start.getLocWithOffset(ReplaceChars)), Spaces,
98 std::max(0, Spaces), Newlines, PreviousPostfix, CurrentPrefix,
186 LastOutsideTokenChange->TokenLength += PrevTokLength + P.Spaces;
347 // spaces it has to be shifted, so the rest of the changes on the line are
353 CurrentChange.Spaces += Shift;
357 CurrentChange.Spaces =
358 std::max(CurrentChange.Spaces,
452 CurrentChange.Spaces += Shift;
456 CurrentChange.Spaces += Shift;
458 // We should not remove required spaces unless we break the line before.
460 CurrentChange.Spaces >=
472 CurrentChange.Spaces != 0 &&
488 Changes[Previous + 1].Spaces -= Shift;
489 Changes[Previous].Spaces += Shift;
660 ChangeWidthRight += Changes[j].Spaces;
716 // spaces it has to be shifted, so the rest of the changes on the line are
721 Changes[I].Spaces += Shift;
762 // For a macro function, 0 spaces are required between the
1121 C.Spaces = C.NewlinesBefore > 0 ? C.Tok->OriginalColumn : OriginalSpaces;
1242 Changes[i].Spaces += Shift;
1331 // Now go through and fixup the spaces.
1342 // the spaces in front of the brace are enough.
1347 Changes[Next->Index].Spaces = BracePadding;
1361 Changes[CellIter->Index].Spaces = (MaxNetWidth - ThisNetWidth);
1372 Changes[Next->Index].Spaces = (MaxNetWidth - ThisNetWidth);
1381 Changes[CellIter->Index].Spaces = (CellWidth - (ThisWidth + NetWidth));
1382 Changes[CellIter->Index].Spaces += (i > 0) ? 1 : BracePadding;
1390 Changes[Next->Index].Spaces = (CellWidth - ThisWidth);
1391 Changes[Next->Index].Spaces += (i > 0) ? 1 : BracePadding;
1407 // Now go through and fixup the spaces.
1412 Change.Spaces =
1423 Changes[CellIter->Index].Spaces =
1438 Changes[Next->Index].Spaces =
1480 InitialSpaces = C.Spaces + C.TokenLength;
1484 InitialSpaces += Changes[j].Spaces + Changes[j].TokenLength;
1488 InitialSpaces += Changes[j].Spaces + Changes[j].TokenLength;
1518 Changes[j].Spaces = InitialSpaces - InitialTokenLength;
1522 C.Spaces = Changes[i - 1].Tok->is(tok::comma) ? 1 : 2;
1529 EndSpaces = Changes[j].Spaces;
1533 C.Spaces = EndSpaces;
1558 auto LineLimit = Changes[j].Spaces + Changes[j].TokenLength;
1561 Changes[i].Spaces = 1;
1566 Changes[i].Spaces = InitialSpaces;
1586 CellWidth += (WithSpaces ? Changes[i].Spaces : 0);
1598 Changes[i].Spaces = Changes[Start].Spaces;
1661 // will be replaced by a newline and 4 spaces. So we will still have to
1680 // assert((int)C.StartOfTokenColumn >= C.Spaces);
1682 ReplacementText, C.Tok->IndentLevel, std::max(0, C.Spaces),
1683 std::max((int)C.StartOfTokenColumn, C.Spaces) - std::max(0, C.Spaces),
1724 unsigned Spaces =
1727 Text.append(Spaces, ' ');
1729 Spaces = std::max<int>(0, EscapedNewlineColumn - 1);
1735 unsigned IndentLevel, unsigned Spaces,
1740 Text.append(Spaces, ' ');
1747 // Insert only spaces when we want to end up before the next tab.
1748 if (Spaces < FirstTabWidth || Spaces == 1) {
1749 Text.append(Spaces, ' ');
1753 Spaces -= FirstTabWidth;
1756 Text.append(Spaces / Style.TabWidth, '\t');
1757 Text.append(Spaces % Style.TabWidth, ' ');
1758 } else if (Spaces == 1) {
1759 Text.append(Spaces, ' ');
1766 Spaces = appendTabIndent(Text, Spaces, Indentation);
1768 Text.append(Spaces, ' ');
1772 Spaces = appendTabIndent(Text, Spaces, Spaces);
1773 Text.append(Spaces, ' ');
1778 IsAligned ? IndentLevel * Style.IndentWidth : Spaces;
1779 Spaces = appendTabIndent(Text, Spaces, Indentation);
1781 Text.append(Spaces, ' ');
1786 unsigned WhitespaceManager::appendTabIndent(std::string &Text, unsigned Spaces,
1790 if (Indentation > Spaces)
1791 Indentation = Spaces;
1795 Spaces -= Tabs * Style.TabWidth;
1797 return Spaces;