Lines Matching defs:Commit
1 //===- Commit.cpp - A unit of edits ---------------------------------------===//
9 #include "clang/Edit/Commit.h"
24 SourceLocation Commit::Edit::getFileLocation(SourceManager &SM) const {
31 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const {
36 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const {
43 Commit::Commit(EditedSource &Editor)
48 bool Commit::insert(SourceLocation loc, StringRef text,
64 bool Commit::insertFromRange(SourceLocation loc,
91 bool Commit::remove(CharSourceRange range) {
103 bool Commit::insertWrap(StringRef before, CharSourceRange range,
116 bool Commit::replace(CharSourceRange range, StringRef text) {
132 bool Commit::replaceWithInner(CharSourceRange range,
165 bool Commit::replaceText(SourceLocation loc, StringRef text,
182 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
196 void Commit::addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs,
212 void Commit::addRemove(SourceLocation OrigLoc,
225 bool Commit::canInsert(SourceLocation loc, FileOffset &offs) {
249 bool Commit::canInsertAfterToken(SourceLocation loc, FileOffset &offs,
283 bool Commit::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {
296 bool Commit::canRemoveRange(CharSourceRange range,
323 bool Commit::canReplaceText(SourceLocation loc, StringRef text,
340 bool Commit::isAtStartOfMacroExpansion(SourceLocation loc,
345 bool Commit::isAtEndOfMacroExpansion(SourceLocation loc,