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