Lines Matching full:replacements
1 //===-- ApplyReplacements.cpp - Apply and deduplicate replacements --------===//
11 /// conflicts in, and applying collections of Replacements.
16 #include "clang-apply-replacements/Tooling/ApplyReplacements.h"
110 /// Extract replacements from collected TranslationUnitReplacements and
111 /// TranslationUnitDiagnostics and group them per file. Identical replacements
129 // Deduplicate identical replacements in diagnostics unless they are from the
164 for (const tooling::Replacement &R : TU.Replacements)
175 // Sort replacements per file to keep consistent behavior when
176 // clang-apply-replacements run on differents machine.
190 // To report conflicting replacements on corresponding file, all replacements
216 tooling::Replacements &Replacements = FileChange.getReplacements();
218 Replacements.getShiftedCodePosition(R.getOffset());
219 unsigned NewLength = Replacements.getShiftedCodePosition(
225 Replacements = Replacements.merge(tooling::Replacements(RR));