Home | History | Annotate | Download | only in Basic

Lines Matching refs:FilePos

1181 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos,
1191 if (FilePos > MemBuf->getBufferSize()) {
1198 // See if we just calculated the line number for this FilePos and can use
1206 if (FilePos >= LineStart && FilePos < LineEnd) {
1209 // FilePos might point to the last separator,
1211 if (FilePos + 1 == LineEnd && FilePos > LineStart) {
1212 if (Buf[FilePos - 1] == '\r' || Buf[FilePos - 1] == '\n')
1213 --FilePos;
1215 return FilePos - LineStart + 1;
1219 unsigned LineStart = FilePos;
1222 return FilePos-LineStart+1;
1345 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos,
1389 unsigned QueriedFilePos = FilePos+1;
1736 unsigned FilePos = Content->SourceLineCache[Line - 1];
1737 const char *Buf = Buffer->getBufferStart() + FilePos;
1738 unsigned BufLength = Buffer->getBufferSize() - FilePos;
1740 return FileLoc.getLocWithOffset(FilePos);
1747 return FileLoc.getLocWithOffset(FilePos + i);