Lines Matching full:change
21 bool WhitespaceManager::Change::IsBeforeInFile::
22 operator()(const Change &C1, const Change &C2) const {
28 WhitespaceManager::Change::Change(
55 Changes.push_back(Change(true, Tok.WhitespaceRange, IndentLevel, Spaces,
64 Changes.push_back(Change(false, Tok.WhitespaceRange, /*IndentLevel=*/0,
77 Changes.push_back(Change(
81 // If we don't add a newline this change doesn't start a comment. Thus,
82 // when we align line comments, we don't need to treat this change as one.
83 // FIXME: We still need to take this change in account to properly
94 std::sort(Changes.begin(), Changes.end(), Change::IsBeforeInFile(SourceMgr));
127 const WhitespaceManager::Change *LastBlockComment = nullptr;
128 for (auto &Change : Changes) {
129 Change.StartOfBlockComment = nullptr;
130 Change.IndentationOffset = 0;
131 if (Change.Kind == tok::comment) {
132 LastBlockComment = &Change;
133 } else if (Change.Kind == tok::unknown) {
134 if ((Change.StartOfBlockComment = LastBlockComment))
135 Change.IndentationOffset =
136 Change.StartOfTokenColumn -
137 Change.StartOfBlockComment->StartOfTokenColumn;
238 Change &C = Changes[i];
255 Change &C = Changes[i];
268 const Change &C = Changes[i];
293 // Don't create a replacement, if it does not change anything.