Lines Matching defs:SourceLineCache
1204 if (LastLineNoFileIDQuery == FID && LastLineNoContentCache->SourceLineCache &&
1205 LastLineNoResult < LastLineNoContentCache->SourceLineCache.size()) {
1206 const unsigned *SourceLineCache =
1207 LastLineNoContentCache->SourceLineCache.begin();
1208 unsigned LineStart = SourceLineCache[LastLineNoResult - 1];
1209 unsigned LineEnd = SourceLineCache[LastLineNoResult];
1375 /// SourceLineCache for it on demand.
1376 if (!Content->SourceLineCache) {
1384 Content->SourceLineCache =
1391 const unsigned *SourceLineCache = Content->SourceLineCache.begin();
1392 const unsigned *SourceLineCacheStart = SourceLineCache;
1393 const unsigned *SourceLineCacheEnd = Content->SourceLineCache.end();
1413 SourceLineCache = SourceLineCache+LastLineNoResult-1;
1419 if (SourceLineCache+5 < SourceLineCacheEnd) {
1420 if (SourceLineCache[5] > QueriedFilePos)
1421 SourceLineCacheEnd = SourceLineCache+5;
1422 else if (SourceLineCache+10 < SourceLineCacheEnd) {
1423 if (SourceLineCache[10] > QueriedFilePos)
1424 SourceLineCacheEnd = SourceLineCache+10;
1425 else if (SourceLineCache+20 < SourceLineCacheEnd) {
1426 if (SourceLineCache[20] > QueriedFilePos)
1427 SourceLineCacheEnd = SourceLineCache+20;
1432 if (LastLineNoResult < Content->SourceLineCache.size())
1433 SourceLineCacheEnd = SourceLineCache+LastLineNoResult+1;
1438 std::lower_bound(SourceLineCache, SourceLineCacheEnd, QueriedFilePos);
1726 // SourceLineCache for it on demand.
1731 if (!Content->SourceLineCache)
1732 Content->SourceLineCache =
1735 if (Line > Content->SourceLineCache.size()) {
1742 unsigned FilePos = Content->SourceLineCache[Line - 1];
2169 NumLineNumsComputed += bool(I->second->SourceLineCache);