Home
last modified time | relevance | path

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

/external/clang/lib/Basic/
DSourceManager.cpp1154 FI->SourceLineCache = Alloc.Allocate<unsigned>(LineOffsets.size()); in ComputeLineNumbers()
1155 std::copy(LineOffsets.begin(), LineOffsets.end(), FI->SourceLineCache); in ComputeLineNumbers()
1187 if (Content->SourceLineCache == 0) { in getLineNumber()
1199 unsigned *SourceLineCache = Content->SourceLineCache; in getLineNumber() local
1200 unsigned *SourceLineCacheStart = SourceLineCache; in getLineNumber()
1201 unsigned *SourceLineCacheEnd = SourceLineCache + Content->NumLines; in getLineNumber()
1221 SourceLineCache = SourceLineCache+LastLineNoResult-1; in getLineNumber()
1227 if (SourceLineCache+5 < SourceLineCacheEnd) { in getLineNumber()
1228 if (SourceLineCache[5] > QueriedFilePos) in getLineNumber()
1229 SourceLineCacheEnd = SourceLineCache+5; in getLineNumber()
[all …]
/external/clang/lib/Rewrite/Core/
DRewriter.cpp249 unsigned lineOffs = Content->SourceLineCache[lineNo]; in InsertText()
381 unsigned parentLineOffs = Content->SourceLineCache[parentLineNo]; in IncreaseIndentation()
382 unsigned startLineOffs = Content->SourceLineCache[startLineNo]; in IncreaseIndentation()
407 unsigned offs = Content->SourceLineCache[lineNo]; in IncreaseIndentation()
/external/clang/include/clang/Basic/
DSourceManager.h118 unsigned *SourceLineCache; variable
138 SourceLineCache(0), NumLines(0), BufferOverridden(false),
143 SourceLineCache(0), NumLines(0), BufferOverridden(false), in ContentCache()
152 : Buffer(0, false), SourceLineCache(0), BufferOverridden(false), in ContentCache()
158 assert (RHS.Buffer.getPointer() == 0 && RHS.SourceLineCache == 0 && in ContentCache()