Lines Matching refs: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()
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()
178 Changes[i - 1].TokenLength + Changes[i - 1].Spaces; in calculateLineBreakInformation()
347 CurrentChange.Spaces += Shift; in AlignTokenSequence()
351 CurrentChange.Spaces = in AlignTokenSequence()
352 std::max(CurrentChange.Spaces, in AlignTokenSequence()
446 CurrentChange.Spaces += Shift; in AlignTokenSequence()
450 CurrentChange.Spaces += Shift; in AlignTokenSequence()
454 CurrentChange.Spaces >= in AlignTokenSequence()
465 CurrentChange.Spaces != 0) { in AlignTokenSequence()
480 Changes[Previous + 1].Spaces -= Shift; in AlignTokenSequence()
481 Changes[Previous].Spaces += Shift; in AlignTokenSequence()
652 ChangeWidthRight += Changes[j].Spaces;
713 Changes[I].Spaces += Shift; in AlignMatchingTokenSequence()
1088 C.Spaces = OriginalSpaces; in alignTrailingComments()
1209 Changes[i].Spaces += Shift; in alignTrailingComments()
1307 Changes[Next->Index].Spaces = BracePadding; in alignArrayInitializersRightJustified()
1321 Changes[CellIter->Index].Spaces = (MaxNetWidth - ThisNetWidth); in alignArrayInitializersRightJustified()
1332 Changes[Next->Index].Spaces = (MaxNetWidth - ThisNetWidth); in alignArrayInitializersRightJustified()
1341 Changes[CellIter->Index].Spaces = (CellWidth - (ThisWidth + NetWidth)); in alignArrayInitializersRightJustified()
1342 Changes[CellIter->Index].Spaces += (i > 0) ? 1 : BracePadding; in alignArrayInitializersRightJustified()
1350 Changes[Next->Index].Spaces = (CellWidth - ThisWidth); in alignArrayInitializersRightJustified()
1351 Changes[Next->Index].Spaces += (i > 0) ? 1 : BracePadding; in alignArrayInitializersRightJustified()
1372 Change.Spaces = in alignArrayInitializersLeftJustified()
1383 Changes[CellIter->Index].Spaces = in alignArrayInitializersLeftJustified()
1398 Changes[Next->Index].Spaces = in alignArrayInitializersLeftJustified()
1440 InitialSpaces = C.Spaces + C.TokenLength; in getCells()
1444 InitialSpaces += Changes[j].Spaces + Changes[j].TokenLength; in getCells()
1448 InitialSpaces += Changes[j].Spaces + Changes[j].TokenLength; in getCells()
1478 Changes[j].Spaces = InitialSpaces - InitialTokenLength; in getCells()
1482 C.Spaces = Changes[i - 1].Tok->is(tok::comma) ? 1 : 2; in getCells()
1489 EndSpaces = Changes[j].Spaces; in getCells()
1493 C.Spaces = EndSpaces; in getCells()
1518 auto LineLimit = Changes[j].Spaces + Changes[j].TokenLength; in getCells()
1521 Changes[i].Spaces = 1; in getCells()
1526 Changes[i].Spaces = InitialSpaces; in getCells()
1546 CellWidth += (WithSpaces ? Changes[i].Spaces : 0); in calculateCellWidth()
1558 Changes[i].Spaces = Changes[Start].Spaces; in alignToStartOfCell()
1642 ReplacementText, C.Tok->IndentLevel, std::max(0, C.Spaces), in generateChanges()
1643 std::max((int)C.StartOfTokenColumn, C.Spaces) - std::max(0, C.Spaces), in generateChanges()
1684 unsigned Spaces = in appendEscapedNewlineText() local
1687 Text.append(Spaces, ' '); in appendEscapedNewlineText()
1689 Spaces = std::max<int>(0, EscapedNewlineColumn - 1); in appendEscapedNewlineText()
1695 unsigned IndentLevel, unsigned Spaces, in appendIndentText() argument
1700 Text.append(Spaces, ' '); in appendIndentText()
1708 if (Spaces < FirstTabWidth || Spaces == 1) { in appendIndentText()
1709 Text.append(Spaces, ' '); in appendIndentText()
1713 Spaces -= FirstTabWidth; in appendIndentText()
1716 Text.append(Spaces / Style.TabWidth, '\t'); in appendIndentText()
1717 Text.append(Spaces % Style.TabWidth, ' '); in appendIndentText()
1718 } else if (Spaces == 1) { in appendIndentText()
1719 Text.append(Spaces, ' '); in appendIndentText()
1726 Spaces = appendTabIndent(Text, Spaces, Indentation); in appendIndentText()
1728 Text.append(Spaces, ' '); in appendIndentText()
1732 Spaces = appendTabIndent(Text, Spaces, Spaces); in appendIndentText()
1733 Text.append(Spaces, ' '); in appendIndentText()
1738 IsAligned ? IndentLevel * Style.IndentWidth : Spaces; in appendIndentText()
1739 Spaces = appendTabIndent(Text, Spaces, Indentation); in appendIndentText()
1741 Text.append(Spaces, ' '); in appendIndentText()
1746 unsigned WhitespaceManager::appendTabIndent(std::string &Text, unsigned Spaces, in appendTabIndent() argument
1750 if (Indentation > Spaces) in appendTabIndent()
1751 Indentation = Spaces; in appendTabIndent()
1755 Spaces -= Tabs * Style.TabWidth; in appendTabIndent()
1757 return Spaces; in appendTabIndent()