• Home
  • Raw
  • Download

Lines Matching refs:Change

21 bool WhitespaceManager::Change::IsBeforeInFile::
22 operator()(const Change &C1, const Change &C2) const { in operator ()()
28 WhitespaceManager::Change::Change( in Change() function in clang::format::WhitespaceManager::Change
58 Change(/*CreateReplacement=*/true, Tok.WhitespaceRange, IndentLevel, in replaceWhitespace()
69 Changes.push_back(Change( in addUntouchableToken()
84 Changes.push_back(Change( in replaceWhitespaceInToken()
97 std::sort(Changes.begin(), Changes.end(), Change::IsBeforeInFile(SourceMgr)); in generateReplacements()
110 Change *LastOutsideTokenChange = &Changes[0]; in calculateLineBreakInformation()
142 const WhitespaceManager::Change *LastBlockComment = nullptr; in calculateLineBreakInformation()
143 for (auto &Change : Changes) { in calculateLineBreakInformation() local
146 if (Change.IsInsideToken) in calculateLineBreakInformation()
147 Change.IsTrailingComment = false; in calculateLineBreakInformation()
148 Change.StartOfBlockComment = nullptr; in calculateLineBreakInformation()
149 Change.IndentationOffset = 0; in calculateLineBreakInformation()
150 if (Change.Kind == tok::comment) { in calculateLineBreakInformation()
151 LastBlockComment = &Change; in calculateLineBreakInformation()
152 } else if (Change.Kind == tok::unknown) { in calculateLineBreakInformation()
153 if ((Change.StartOfBlockComment = LastBlockComment)) in calculateLineBreakInformation()
154 Change.IndentationOffset = in calculateLineBreakInformation()
155 Change.StartOfTokenColumn - in calculateLineBreakInformation()
156 Change.StartOfBlockComment->StartOfTokenColumn; in calculateLineBreakInformation()
167 SmallVector<WhitespaceManager::Change, 16> &Changes) { in AlignTokenSequence() argument
200 SmallVector<WhitespaceManager::Change, 16> &Changes) { in AlignTokens() argument
313 [&](const Change &C) { in alignConsecutiveAssignments()
338 AlignTokens(Style, [](Change const &C) { return C.IsStartOfDeclName; }, in alignConsecutiveDeclarations()
446 Change &C = Changes[i]; in alignEscapedNewlines()
463 Change &C = Changes[i]; in alignEscapedNewlines()
476 const Change &C = Changes[i]; in generateChanges()