Lines Matching refs:Spaces
30 int Spaces, unsigned StartOfTokenColumn,
40 ContinuesPPDirective(ContinuesPPDirective), Spaces(Spaces),
47 unsigned Spaces,
54 Spaces, StartOfTokenColumn, Newlines, "", "",
64 Tok.WhitespaceRange, /*Spaces=*/0,
78 unsigned Newlines, int Spaces) {
84 SourceRange(Start, Start.getLocWithOffset(ReplaceChars)), Spaces,
85 std::max(0, Spaces), Newlines, PreviousPostfix, CurrentPrefix,
163 Changes[i - 1].TokenLength + Changes[i - 1].Spaces;
320 // spaces it has to be shifted, so the rest of the changes on the line are
325 Changes[i].Spaces += Shift;
361 Changes[i].Spaces += Shift;
365 Changes[i].Spaces += Shift;
512 LineLengthAfter += Changes[j].Spaces;
563 // spaces it has to be shifted, so the rest of the changes on the line are
568 Changes[I].Spaces += Shift;
610 // For a macro function, 0 spaces are required between the
673 int LineLengthAfter = -Changes[I].Spaces;
675 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength;
904 Changes[i].Spaces += Shift;
964 ReplacementText, C.Tok->IndentLevel, std::max(0, C.Spaces),
965 C.StartOfTokenColumn - std::max(0, C.Spaces), C.IsAligned);
999 unsigned Spaces =
1002 Text.append(Spaces, ' ');
1004 Spaces = std::max<int>(0, EscapedNewlineColumn - 1);
1010 unsigned IndentLevel, unsigned Spaces,
1015 Text.append(Spaces, ' ');
1022 // Insert only spaces when we want to end up before the next tab.
1023 if (Spaces < FirstTabWidth || Spaces == 1) {
1024 Text.append(Spaces, ' ');
1028 Spaces -= FirstTabWidth;
1031 Text.append(Spaces / Style.TabWidth, '\t');
1032 Text.append(Spaces % Style.TabWidth, ' ');
1033 } else if (Spaces == 1) {
1034 Text.append(Spaces, ' ');
1041 Spaces = appendTabIndent(Text, Spaces, Indentation);
1043 Text.append(Spaces, ' ');
1047 Spaces = appendTabIndent(Text, Spaces, Spaces);
1048 Text.append(Spaces, ' ');
1053 IsAligned ? IndentLevel * Style.IndentWidth : Spaces;
1054 Spaces = appendTabIndent(Text, Spaces, Indentation);
1056 Text.append(Spaces, ' ');
1061 unsigned WhitespaceManager::appendTabIndent(std::string &Text, unsigned Spaces,
1065 if (Indentation > Spaces)
1066 Indentation = Spaces;
1070 Spaces -= Tabs * Style.TabWidth;
1072 return Spaces;