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

Lines Matching defs:Change

20 bool WhitespaceManager::Change::IsBeforeInFile::operator()(
21 const Change &C1, const Change &C2) const {
27 WhitespaceManager::Change::Change(const FormatToken &Tok,
52 Changes.push_back(Change(Tok, /*CreateReplacement=*/true, Tok.WhitespaceRange,
62 Changes.push_back(Change(Tok, /*CreateReplacement=*/false,
82 Change(Tok, /*CreateReplacement=*/true,
92 llvm::sort(Changes, Change::IsBeforeInFile(SourceMgr));
106 Change *LastOutsideTokenChange = &Changes[0];
207 const WhitespaceManager::Change *LastBlockComment = nullptr;
208 for (auto &Change : Changes) {
212 if (Change.IsInsideToken && Change.NewlinesBefore == 0)
213 Change.IsTrailingComment = false;
214 Change.StartOfBlockComment = nullptr;
215 Change.IndentationOffset = 0;
216 if (Change.Tok->is(tok::comment)) {
217 if (Change.Tok->is(TT_LineComment) || !Change.IsInsideToken)
218 LastBlockComment = &Change;
220 if ((Change.StartOfBlockComment = LastBlockComment))
221 Change.IndentationOffset =
222 Change.StartOfTokenColumn -
223 Change.StartOfBlockComment->StartOfTokenColumn;
235 SmallVector<WhitespaceManager::Change, 16> &Changes) {
330 SmallVector<WhitespaceManager::Change, 16> &Changes,
359 // We need to adjust the StartOfTokenColumn of each Change that is on a line
437 // We need to adjust the StartOfTokenColumn of each Change that is on a line
442 std::function<bool(const WhitespaceManager::Change &C)> AlignMacrosMatches,
443 SmallVector<WhitespaceManager::Change, 16> &Changes) {
481 auto AlignMacrosMatches = [](const Change &C) {
562 [&](const Change &C) {
588 [](Change const &C) {
720 Change &C = Changes[i];
737 Change &C = Changes[i];
750 const Change &C = Changes[i];