Lines Matching refs:Rewrite
50 bool Replacement::apply(Rewriter &Rewrite) const { in apply()
51 SourceManager &SM = Rewrite.getSourceMgr(); in apply()
69 bool RewriteSucceeded = !Rewrite.ReplaceText(Start, Length, ReplacementText); in apply()
124 bool applyAllReplacements(Replacements &Replaces, Rewriter &Rewrite) { in applyAllReplacements() argument
130 Result = I->apply(Rewrite) && Result; in applyAllReplacements()
138 bool saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles() argument
139 for (Rewriter::buffer_iterator I = Rewrite.buffer_begin(), in saveRewrittenFiles()
140 E = Rewrite.buffer_end(); in saveRewrittenFiles()
146 Rewrite.getSourceMgr().getFileEntryForID(I->first); in saveRewrittenFiles()
174 Rewriter Rewrite(Sources, DefaultLangOptions); in run() local
175 if (!applyAllReplacements(Replace, Rewrite)) { in run()
178 if (!saveRewrittenFiles(Rewrite)) { in run()