Lines Matching refs:Replaces
145 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) { in applyAllReplacements() argument
147 for (Replacements::const_iterator I = Replaces.begin(), in applyAllReplacements()
148 E = Replaces.end(); in applyAllReplacements()
161 bool applyAllReplacements(const std::vector<Replacement> &Replaces, in applyAllReplacements() argument
164 for (std::vector<Replacement>::const_iterator I = Replaces.begin(), in applyAllReplacements()
165 E = Replaces.end(); in applyAllReplacements()
176 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces) { in applyAllReplacements() argument
191 for (Replacements::const_iterator I = Replaces.begin(), E = Replaces.end(); in applyAllReplacements()
205 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { in shiftedCodePosition() argument
207 for (Replacements::iterator I = Replaces.begin(), E = Replaces.end(); I != E; in shiftedCodePosition()
220 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces, in shiftedCodePosition() argument
223 for (std::vector<Replacement>::const_iterator I = Replaces.begin(), in shiftedCodePosition()
224 E = Replaces.end(); in shiftedCodePosition()
235 void deduplicate(std::vector<Replacement> &Replaces, in deduplicate() argument
237 if (Replaces.empty()) in deduplicate()
241 std::sort(Replaces.begin(), Replaces.end()); in deduplicate()
243 std::unique(Replaces.begin(), Replaces.end()); in deduplicate()
244 Replaces.erase(End, Replaces.end()); in deduplicate()
247 Range ConflictRange(Replaces.front().getOffset(), in deduplicate()
248 Replaces.front().getLength()); in deduplicate()
251 for (unsigned i = 1; i < Replaces.size(); ++i) { in deduplicate()
252 Range Current(Replaces[i].getOffset(), Replaces[i].getLength()); in deduplicate()