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

References

tools/clang/lib/Format/WhitespaceManager.cpp
  107   for (unsigned i = 1, e = Changes.size(); i != e; ++i) {
  107   for (unsigned i = 1, e = Changes.size(); i != e; ++i) {
  109         Changes[i].OriginalWhitespaceRange.getBegin();
  111         Changes[i - 1].OriginalWhitespaceRange.getEnd();
  146       Changes[i - 1].TokenLength = OriginalWhitespaceStartOffset -
  148                                    Changes[i].PreviousLinePostfix.size() +
  149                                    Changes[i - 1].CurrentLinePrefix.size();
  151       Changes[i - 1].TokenLength =
  152           NewlinePos + Changes[i - 1].CurrentLinePrefix.size();
  157     if (Changes[i - 1].IsInsideToken && Changes[i - 1].NewlinesBefore == 0)
  157     if (Changes[i - 1].IsInsideToken && Changes[i - 1].NewlinesBefore == 0)
  159           Changes[i - 1].TokenLength + Changes[i - 1].Spaces;
  159           Changes[i - 1].TokenLength + Changes[i - 1].Spaces;
  161       LastOutsideTokenChange = &Changes[i - 1];
  163     Changes[i].PreviousEndOfTokenColumn =
  164         Changes[i - 1].StartOfTokenColumn + Changes[i - 1].TokenLength;
  164         Changes[i - 1].StartOfTokenColumn + Changes[i - 1].TokenLength;
  166     Changes[i - 1].IsTrailingComment =
  167         (Changes[i].NewlinesBefore > 0 || Changes[i].Tok->is(tok::eof) ||
  167         (Changes[i].NewlinesBefore > 0 || Changes[i].Tok->is(tok::eof) ||
  168          (Changes[i].IsInsideToken && Changes[i].Tok->is(tok::comment))) &&
  168          (Changes[i].IsInsideToken && Changes[i].Tok->is(tok::comment))) &&
  169         Changes[i - 1].Tok->is(tok::comment) &&