• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Format/

Lines Matching defs: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;
313 Changes[i].Spaces += Shift;
326 Changes[i].Spaces += Shift;
448 LineLengthAfter += Changes[j].Spaces;
504 Changes[I].Spaces += Shift;
585 int LineLengthAfter = -Changes[I].Spaces;
587 LineLengthAfter += Changes[j].Spaces + Changes[j].TokenLength;
812 Changes[i].Spaces += Shift;
872 ReplacementText, C.Tok->IndentLevel, std::max(0, C.Spaces),
873 C.StartOfTokenColumn - std::max(0, C.Spaces), C.IsAligned);
907 unsigned Spaces =
910 Text.append(Spaces, ' ');
912 Spaces = std::max<int>(0, EscapedNewlineColumn - 1);
918 unsigned IndentLevel, unsigned Spaces,
923 Text.append(Spaces, ' ');
931 if (Spaces < FirstTabWidth || Spaces == 1) {
932 Text.append(Spaces, ' ');
936 Spaces -= FirstTabWidth;
939 Text.append(Spaces / Style.TabWidth, '\t');
940 Text.append(Spaces % Style.TabWidth, ' ');
941 } else if (Spaces == 1) {
942 Text.append(Spaces, ' ');
949 Spaces = appendTabIndent(Text, Spaces, Indentation);
951 Text.append(Spaces, ' ');
955 Spaces = appendTabIndent(Text, Spaces, Spaces);
956 Text.append(Spaces, ' ');
961 IsAligned ? IndentLevel * Style.IndentWidth : Spaces;
962 Spaces = appendTabIndent(Text, Spaces, Indentation);
964 Text.append(Spaces, ' ');
969 unsigned WhitespaceManager::appendTabIndent(std::string &Text, unsigned Spaces,
973 if (Indentation > Spaces)
974 Indentation = Spaces;
978 Spaces -= Tabs * Style.TabWidth;
980 return Spaces;