reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/WhitespaceManager.cpp
  616   for (unsigned i = 0, e = Changes.size(); i != e; ++i) {
  616   for (unsigned i = 0, e = Changes.size(); i != e; ++i) {
  617     if (Changes[i].StartOfBlockComment)
  619     Newlines += Changes[i].NewlinesBefore;
  620     if (!Changes[i].IsTrailingComment)
  623     unsigned ChangeMinColumn = Changes[i].StartOfTokenColumn;
  628     else if (Style.ColumnLimit >= Changes[i].TokenLength)
  629       ChangeMaxColumn = Style.ColumnLimit - Changes[i].TokenLength;
  635     if (!Changes[i].CreateReplacement)
  638     if (i + 1 != e && Changes[i + 1].ContinuesPPDirective)
  638     if (i + 1 != e && Changes[i + 1].ContinuesPPDirective)
  642     bool FollowsRBraceInColumn0 = i > 0 && Changes[i].NewlinesBefore == 0 &&
  642     bool FollowsRBraceInColumn0 = i > 0 && Changes[i].NewlinesBefore == 0 &&
  643                                   Changes[i - 1].Tok->is(tok::r_brace) &&
  644                                   Changes[i - 1].StartOfTokenColumn == 0;
  646     if (Changes[i].NewlinesBefore == 1) { // A comment on its own line.
  648           Changes[i].OriginalWhitespaceRange.getEnd());
  649       for (unsigned j = i + 1; j != e; ++j) {
  664       alignTrailingComments(StartOfSequence, i, MinColumn);
  667       StartOfSequence = i;
  672                (Changes[i].NewlinesBefore == 1 && i > 0 &&
  672                (Changes[i].NewlinesBefore == 1 && i > 0 &&
  673                 !Changes[i - 1].IsTrailingComment) ||
  675       alignTrailingComments(StartOfSequence, i, MinColumn);
  678       StartOfSequence = i;
  683     BreakBeforeNext = (i == 0) || (Changes[i].NewlinesBefore > 1) ||
  683     BreakBeforeNext = (i == 0) || (Changes[i].NewlinesBefore > 1) ||
  686                       (Changes[i].NewlinesBefore == 1 && StartOfSequence == i);
  686                       (Changes[i].NewlinesBefore == 1 && StartOfSequence == i);