Home | History | Annotate | Download | only in Rewrite

Lines Matching full:commit

20 #include "clang/Edit/Commit.h"
148 edit::Commit commit(Editor);
155 commit.insertFromRange(Hint.RemoveRange.getBegin(),
159 commit.remove(Hint.RemoveRange);
163 commit.replace(Hint.RemoveRange, Hint.CodeToInsert);
165 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert,
169 bool CanRewrite = Info.getNumFixItHints() > 0 && commit.isCommitable();
183 if (!Editor.commit(commit)) {