Home
last modified time | relevance | path

Searched refs:SourceLineCache (Results 1 – 3 of 3) sorted by relevance

/external/clang/lib/Basic/
DSourceManager.cpp1023 FI->SourceLineCache = Alloc.Allocate<unsigned>(LineOffsets.size()); in ComputeLineNumbers()
1024 std::copy(LineOffsets.begin(), LineOffsets.end(), FI->SourceLineCache); in ComputeLineNumbers()
1056 if (Content->SourceLineCache == 0) { in getLineNumber()
1068 unsigned *SourceLineCache = Content->SourceLineCache; in getLineNumber() local
1069 unsigned *SourceLineCacheStart = SourceLineCache; in getLineNumber()
1070 unsigned *SourceLineCacheEnd = SourceLineCache + Content->NumLines; in getLineNumber()
1090 SourceLineCache = SourceLineCache+LastLineNoResult-1; in getLineNumber()
1096 if (SourceLineCache+5 < SourceLineCacheEnd) { in getLineNumber()
1097 if (SourceLineCache[5] > QueriedFilePos) in getLineNumber()
1098 SourceLineCacheEnd = SourceLineCache+5; in getLineNumber()
[all …]
/external/clang/lib/Rewrite/
DRewriter.cpp248 unsigned lineOffs = Content->SourceLineCache[lineNo]; in InsertText()
382 unsigned parentLineOffs = Content->SourceLineCache[parentLineNo]; in IncreaseIndentation()
383 unsigned startLineOffs = Content->SourceLineCache[startLineNo]; in IncreaseIndentation()
408 unsigned offs = Content->SourceLineCache[lineNo]; in IncreaseIndentation()
/external/clang/include/clang/Basic/
DSourceManager.h85 unsigned *SourceLineCache; variable
148 SourceLineCache(0), NumLines(0) {}
152 SourceLineCache(0), NumLines(0) {} in ContentCache()
160 : Buffer(0, false), SourceLineCache(0) in ContentCache()
165 assert (RHS.Buffer.getPointer() == 0 && RHS.SourceLineCache == 0 in ContentCache()