Home | History | Annotate | Download | only in Edit

Lines Matching full:offs

31 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) {
32 FileEditsTy::iterator FA = getActionForOffset(Offs);
34 if (FA->first != Offs)
54 FileOffset Offs, StringRef text,
56 if (!canInsertInOffset(OrigLoc, Offs))
69 FileEdit &FA = FileEdits[Offs];
84 FileOffset Offs,
138 return commitInsert(OrigLoc, Offs, StrVec, beforePreviousInsertions);
268 SourceLocation Loc, FileOffset offs,
276 StringRef buffer = SM.getBufferData(offs.getFID(), &Invalid);
280 unsigned begin = offs.getOffset();
313 StringRef text, FileOffset offs, unsigned len,
315 assert(!offs.getFID().isInvalid());
316 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID());
317 Loc = Loc.getLocWithOffset(offs.getOffset());
321 adjustRemoval(SM, LangOpts, Loc, offs, len, text);
354 FileOffset offs = I->first;
356 assert(offs >= CurEnd);
358 if (offs == CurEnd) {
366 CurOffs = offs;
394 EditedSource::getActionForOffset(FileOffset Offs) {
395 FileEditsTy::iterator I = FileEdits.upper_bound(Offs);
402 if (Offs >= B && Offs < E)