Lines Matching refs:SourceLineCache
1145 LastLineNoContentCache->SourceLineCache != nullptr && in getColumnNumber()
1147 unsigned *SourceLineCache = LastLineNoContentCache->SourceLineCache; in getColumnNumber() local
1148 unsigned LineStart = SourceLineCache[LastLineNoResult - 1]; in getColumnNumber()
1149 unsigned LineEnd = SourceLineCache[LastLineNoResult]; in getColumnNumber()
1281 FI->SourceLineCache = Alloc.Allocate<unsigned>(LineOffsets.size()); in ComputeLineNumbers()
1282 std::copy(LineOffsets.begin(), LineOffsets.end(), FI->SourceLineCache); in ComputeLineNumbers()
1314 if (!Content->SourceLineCache) { in getLineNumber()
1326 unsigned *SourceLineCache = Content->SourceLineCache; in getLineNumber() local
1327 unsigned *SourceLineCacheStart = SourceLineCache; in getLineNumber()
1328 unsigned *SourceLineCacheEnd = SourceLineCache + Content->NumLines; in getLineNumber()
1348 SourceLineCache = SourceLineCache+LastLineNoResult-1; in getLineNumber()
1354 if (SourceLineCache+5 < SourceLineCacheEnd) { in getLineNumber()
1355 if (SourceLineCache[5] > QueriedFilePos) in getLineNumber()
1356 SourceLineCacheEnd = SourceLineCache+5; in getLineNumber()
1357 else if (SourceLineCache+10 < SourceLineCacheEnd) { in getLineNumber()
1358 if (SourceLineCache[10] > QueriedFilePos) in getLineNumber()
1359 SourceLineCacheEnd = SourceLineCache+10; in getLineNumber()
1360 else if (SourceLineCache+20 < SourceLineCacheEnd) { in getLineNumber()
1361 if (SourceLineCache[20] > QueriedFilePos) in getLineNumber()
1362 SourceLineCacheEnd = SourceLineCache+20; in getLineNumber()
1368 SourceLineCacheEnd = SourceLineCache+LastLineNoResult+1; in getLineNumber()
1373 = std::lower_bound(SourceLineCache, SourceLineCacheEnd, QueriedFilePos); in getLineNumber()
1752 if (!Content->SourceLineCache) { in translateLineCol()
1767 unsigned FilePos = Content->SourceLineCache[Line - 1]; in translateLineCol()
2147 NumLineNumsComputed += I->second->SourceLineCache != nullptr; in PrintStats()