Lines Matching full:replacement
45 // Clear the matchers so that each Replacement is only emitted once. in HandleTranslationUnit()
51 for (const auto &Replacement : Callback->getReplacements()) { in HandleTranslationUnit() local
53 Refactoring.FileToReplaces[std::string(Replacement.getFilePath())] in HandleTranslationUnit()
54 .add(Replacement); in HandleTranslationUnit()
56 llvm::errs() << "Skipping replacement " << Replacement.toString() in HandleTranslationUnit()
72 static Replacement replaceStmtWithText(SourceManager &Sources, const Stmt &From, in replaceStmtWithText()
74 return tooling::Replacement( in replaceStmtWithText()
77 static Replacement replaceStmtWithStmt(SourceManager &Sources, const Stmt &From, in replaceStmtWithStmt()
91 auto Err = Replace.add(tooling::Replacement( in run()
171 "Unterminated ${...} in replacement template near " + in create()
182 "Invalid $ in replacement template near " + in create()
212 << " used in replacement template not bound in Matcher \n"; in run()
213 llvm::report_fatal_error("Unbound node in replacement template."); in run()
228 auto Replacement = in run() local
229 tooling::Replacement(*Result.SourceManager, &NodeMap.at(FromId), ToText, in run()
231 llvm::Error Err = Replace.add(Replacement); in run()
233 llvm::errs() << "Query and replace failed in " << Replacement.getFilePath() in run()
235 llvm::report_fatal_error("Replacement failed"); in run()