Lines Matching refs:Spaces
32 int Spaces, unsigned StartOfTokenColumn, in Change() argument
42 ContinuesPPDirective(ContinuesPPDirective), Spaces(Spaces), in Change()
49 unsigned Spaces, in replaceWhitespace() argument
56 Spaces, StartOfTokenColumn, Newlines, "", "", in replaceWhitespace()
86 unsigned Newlines, int Spaces) { in replaceWhitespaceInToken() argument
92 SourceRange(Start, Start.getLocWithOffset(ReplaceChars)), Spaces, in replaceWhitespaceInToken()
93 std::max(0, Spaces), Newlines, PreviousPostfix, CurrentPrefix, in replaceWhitespaceInToken()
172 Changes[i - 1].TokenLength + Changes[i - 1].Spaces; in calculateLineBreakInformation()
340 Changes[i].Spaces += Shift; in AlignTokenSequence()
344 Changes[i].Spaces = in AlignTokenSequence()
345 std::max(Changes[i].Spaces, in AlignTokenSequence()
431 Changes[i].Spaces += Shift; in AlignTokenSequence()
435 Changes[i].Spaces += Shift; in AlignTokenSequence()
439 Changes[i].Spaces >= in AlignTokenSequence()
449 Changes[i].Spaces != 0) { in AlignTokenSequence()
454 Changes[Previous + 1].Spaces -= Shift; in AlignTokenSequence()
455 Changes[Previous].Spaces += Shift; in AlignTokenSequence()
624 ChangeWidthRight += Changes[j].Spaces;
687 Changes[I].Spaces += Shift; in AlignMacroSequence()
786 int LineLengthAfter = -Changes[I].Spaces; in alignConsecutiveMacros()
788 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength; in alignConsecutiveMacros()
1019 Changes[i].Spaces += Shift; in alignTrailingComments()
1116 Changes[Next->Index].Spaces = 0; in alignArrayInitializersRightJustified()
1130 Changes[CellIter->Index].Spaces = (MaxNetWidth - ThisNetWidth); in alignArrayInitializersRightJustified()
1139 Changes[Next->Index].Spaces = (MaxNetWidth - ThisNetWidth); in alignArrayInitializersRightJustified()
1148 Changes[CellIter->Index].Spaces = (CellWidth - (ThisWidth + NetWidth)); in alignArrayInitializersRightJustified()
1149 Changes[CellIter->Index].Spaces += (i > 0) ? 1 : 0; in alignArrayInitializersRightJustified()
1157 Changes[Next->Index].Spaces = (CellWidth - ThisWidth); in alignArrayInitializersRightJustified()
1158 Changes[Next->Index].Spaces += (i > 0) ? 1 : 0; in alignArrayInitializersRightJustified()
1177 Changes[CellIter->Index].Spaces = 0; in alignArrayInitializersLeftJustified()
1179 Changes[CellIter->Index].Spaces = CellDescs.InitialSpaces; in alignArrayInitializersLeftJustified()
1188 Changes[CellIter->Index].Spaces = in alignArrayInitializersLeftJustified()
1202 Changes[Next->Index].Spaces = in alignArrayInitializersLeftJustified()
1244 InitialSpaces = C.Spaces + C.TokenLength; in getCells()
1248 InitialSpaces += Changes[j].Spaces + Changes[j].TokenLength; in getCells()
1252 InitialSpaces += Changes[j].Spaces + Changes[j].TokenLength; in getCells()
1280 Changes[j].Spaces = InitialSpaces - InitialTokenLength; in getCells()
1284 C.Spaces = Changes[i - 1].Tok->is(tok::comma) ? 1 : 2; in getCells()
1291 EndSpaces = Changes[j].Spaces; in getCells()
1295 C.Spaces = EndSpaces; in getCells()
1320 auto LineLimit = Changes[j].Spaces + Changes[j].TokenLength; in getCells()
1323 Changes[i].Spaces = 1; in getCells()
1328 Changes[i].Spaces = InitialSpaces; in getCells()
1348 CellWidth += (WithSpaces ? Changes[i].Spaces : 0); in calculateCellWidth()
1360 Changes[i].Spaces = Changes[Start].Spaces; in alignToStartOfCell()
1400 ReplacementText, C.Tok->IndentLevel, std::max(0, C.Spaces), in generateChanges()
1401 std::max((int)C.StartOfTokenColumn, C.Spaces) - std::max(0, C.Spaces), in generateChanges()
1442 unsigned Spaces = in appendEscapedNewlineText() local
1445 Text.append(Spaces, ' '); in appendEscapedNewlineText()
1447 Spaces = std::max<int>(0, EscapedNewlineColumn - 1); in appendEscapedNewlineText()
1453 unsigned IndentLevel, unsigned Spaces, in appendIndentText() argument
1458 Text.append(Spaces, ' '); in appendIndentText()
1466 if (Spaces < FirstTabWidth || Spaces == 1) { in appendIndentText()
1467 Text.append(Spaces, ' '); in appendIndentText()
1471 Spaces -= FirstTabWidth; in appendIndentText()
1474 Text.append(Spaces / Style.TabWidth, '\t'); in appendIndentText()
1475 Text.append(Spaces % Style.TabWidth, ' '); in appendIndentText()
1476 } else if (Spaces == 1) { in appendIndentText()
1477 Text.append(Spaces, ' '); in appendIndentText()
1484 Spaces = appendTabIndent(Text, Spaces, Indentation); in appendIndentText()
1486 Text.append(Spaces, ' '); in appendIndentText()
1490 Spaces = appendTabIndent(Text, Spaces, Spaces); in appendIndentText()
1491 Text.append(Spaces, ' '); in appendIndentText()
1496 IsAligned ? IndentLevel * Style.IndentWidth : Spaces; in appendIndentText()
1497 Spaces = appendTabIndent(Text, Spaces, Indentation); in appendIndentText()
1499 Text.append(Spaces, ' '); in appendIndentText()
1504 unsigned WhitespaceManager::appendTabIndent(std::string &Text, unsigned Spaces, in appendTabIndent() argument
1508 if (Indentation > Spaces) in appendTabIndent()
1509 Indentation = Spaces; in appendTabIndent()
1513 Spaces -= Tabs * Style.TabWidth; in appendTabIndent()
1515 return Spaces; in appendTabIndent()