Lines Matching refs:SourceLineCache
1054 LastLineNoContentCache->SourceLineCache != 0 &&
1056 unsigned *SourceLineCache = LastLineNoContentCache->SourceLineCache;
1057 unsigned LineStart = SourceLineCache[LastLineNoResult - 1];
1058 unsigned LineEnd = SourceLineCache[LastLineNoResult];
1185 FI->SourceLineCache = Alloc.Allocate<unsigned>(LineOffsets.size());
1186 std::copy(LineOffsets.begin(), LineOffsets.end(), FI->SourceLineCache);
1217 /// SourceLineCache for it on demand.
1218 if (Content->SourceLineCache == 0) {
1230 unsigned *SourceLineCache = Content->SourceLineCache;
1231 unsigned *SourceLineCacheStart = SourceLineCache;
1232 unsigned *SourceLineCacheEnd = SourceLineCache + Content->NumLines;
1252 SourceLineCache = SourceLineCache+LastLineNoResult-1;
1258 if (SourceLineCache+5 < SourceLineCacheEnd) {
1259 if (SourceLineCache[5] > QueriedFilePos)
1260 SourceLineCacheEnd = SourceLineCache+5;
1261 else if (SourceLineCache+10 < SourceLineCacheEnd) {
1262 if (SourceLineCache[10] > QueriedFilePos)
1263 SourceLineCacheEnd = SourceLineCache+10;
1264 else if (SourceLineCache+20 < SourceLineCacheEnd) {
1265 if (SourceLineCache[20] > QueriedFilePos)
1266 SourceLineCacheEnd = SourceLineCache+20;
1272 SourceLineCacheEnd = SourceLineCache+LastLineNoResult+1;
1280 if (0 && SourceLineCacheEnd-SourceLineCache > 20) {
1281 unsigned FileLen = Content->SourceLineCache[Content->NumLines-1];
1291 if (SourceLineCache < SourceLineCacheStart+LowerBound &&
1293 SourceLineCache = SourceLineCacheStart+LowerBound;
1302 = std::lower_bound(SourceLineCache, SourceLineCacheEnd, QueriedFilePos);
1642 // SourceLineCache for it on demand.
1643 if (Content->SourceLineCache == 0) {
1658 unsigned FilePos = Content->SourceLineCache[Line - 1];
1988 NumLineNumsComputed += I->second->SourceLineCache != 0;