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];
86 FileOffset Offs,
140 return commitInsert(OrigLoc, Offs, StrVec.str(), beforePreviousInsertions);
270 SourceLocation Loc, FileOffset offs,
278 StringRef buffer = SM.getBufferData(offs.getFID(), &Invalid);
282 unsigned begin = offs.getOffset();
307 StringRef text, FileOffset offs, unsigned len,
309 assert(!offs.getFID().isInvalid());
310 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID());
311 Loc = Loc.getLocWithOffset(offs.getOffset());
315 adjustRemoval(SM, LangOpts, Loc, offs, len, text);
348 FileOffset offs = I->first;
350 assert(offs >= CurEnd);
352 if (offs == CurEnd) {
360 CurOffs = offs;
388 EditedSource::getActionForOffset(FileOffset Offs) {
389 FileEditsTy::iterator I = FileEdits.upper_bound(Offs);
396 if (Offs >= B && Offs < E)