Home | History | Annotate | Download | only in Format

Lines Matching full:change

21 bool WhitespaceManager::Change::IsBeforeInFile::
22 operator()(const Change &C1, const Change &C2) const {
28 WhitespaceManager::Change::Change(
53 Changes.push_back(Change(true, Tok.WhitespaceRange, IndentLevel, Spaces,
62 Changes.push_back(Change(false, Tok.WhitespaceRange, /*IndentLevel=*/0,
75 Changes.push_back(Change(
79 // If we don't add a newline this change doesn't start a comment. Thus,
80 // when we align line comments, we don't need to treat this change as one.
81 // FIXME: We still need to take this change in account to properly
92 std::sort(Changes.begin(), Changes.end(), Change::IsBeforeInFile(SourceMgr));
125 const WhitespaceManager::Change *LastBlockComment = nullptr;
126 for (auto &Change : Changes) {
127 Change.StartOfBlockComment = nullptr;
128 Change.IndentationOffset = 0;
129 if (Change.Kind == tok::comment) {
130 LastBlockComment = &Change;
131 } else if (Change.Kind == tok::unknown) {
132 if ((Change.StartOfBlockComment = LastBlockComment))
133 Change.IndentationOffset =
134 Change.StartOfTokenColumn -
135 Change.StartOfBlockComment->StartOfTokenColumn;
234 Change &C = Changes[i];
251 Change &C = Changes[i];
264 const Change &C = Changes[i];
284 // Don't create a replacement, if it does not change anything.