Lines Matching refs:Replaces
147 unsigned shiftedCodePositionInternal(const T &Replaces, unsigned Position) {
149 for (const auto& R : Replaces) {
163 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) {
164 return shiftedCodePositionInternal(Replaces, Position);
169 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces,
171 return shiftedCodePositionInternal(Replaces, Position);
174 void deduplicate(std::vector<Replacement> &Replaces,
176 if (Replaces.empty())
195 std::sort(Replaces.begin(), Replaces.end(), LessNoPath);
196 Replaces.erase(std::unique(Replaces.begin(), Replaces.end(), EqualNoPath),
197 Replaces.end());
200 Range ConflictRange(Replaces.front().getOffset(),
201 Replaces.front().getLength());
204 for (unsigned i = 1; i < Replaces.size(); ++i) {
205 Range Current(Replaces[i].getOffset(), Replaces[i].getLength());
226 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) {
228 for (Replacements::const_iterator I = Replaces.begin(),
229 E = Replaces.end();
242 bool applyAllReplacements(const std::vector<Replacement> &Replaces,
245 for (std::vector<Replacement>::const_iterator I = Replaces.begin(),
246 E = Replaces.end();
257 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces) {
270 for (Replacements::const_iterator I = Replaces.begin(), E = Replaces.end();