Home | History | Annotate | Download | only in Edit

Lines Matching refs:OrigLoc

30 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {
37 if (SourceMgr.isMacroArgExpansion(OrigLoc)) {
39 DefArgLoc = SourceMgr.getImmediateExpansionRange(OrigLoc).first;
52 bool EditedSource::commitInsert(SourceLocation OrigLoc,
55 if (!canInsertInOffset(OrigLoc, Offs))
60 if (SourceMgr.isMacroArgExpansion(OrigLoc)) {
62 DefArgLoc = SourceMgr.getImmediateExpansionRange(OrigLoc).first;
84 bool EditedSource::commitInsertFromRange(SourceLocation OrigLoc,
136 return commitInsert(OrigLoc, Offs, StrVec.str(), beforePreviousInsertions);
139 void EditedSource::commitRemove(SourceLocation OrigLoc,
223 commitInsert(edit.OrigLoc, edit.Offset, edit.Text, edit.BeforePrev);
226 commitInsertFromRange(edit.OrigLoc, edit.Offset,
231 commitRemove(edit.OrigLoc, edit.Offset, edit.Length);