Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp1192 if (LastLineNoFileIDQuery == FID && LastLineNoContentCache->SourceLineCache && in getColumnNumber()
1193 LastLineNoResult < LastLineNoContentCache->SourceLineCache.size()) { in getColumnNumber()
1194 const unsigned *SourceLineCache = in getColumnNumber() local
1195 LastLineNoContentCache->SourceLineCache.begin(); in getColumnNumber()
1196 unsigned LineStart = SourceLineCache[LastLineNoResult - 1]; in getColumnNumber()
1197 unsigned LineEnd = SourceLineCache[LastLineNoResult]; in getColumnNumber()
1316 if (!Content->SourceLineCache) { in getLineNumber()
1324 Content->SourceLineCache = in getLineNumber()
1331 const unsigned *SourceLineCache = Content->SourceLineCache.begin(); in getLineNumber() local
1332 const unsigned *SourceLineCacheStart = SourceLineCache; in getLineNumber()
[all …]
/external/clang/lib/Basic/
DSourceManager.cpp1145 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()
[all …]
/external/llvm-project/clang/lib/Rewrite/
DRewriter.cpp268 unsigned lineOffs = Content->SourceLineCache[lineNo]; in InsertText()
374 unsigned parentLineOffs = Content->SourceLineCache[parentLineNo]; in IncreaseIndentation()
375 unsigned startLineOffs = Content->SourceLineCache[startLineNo]; in IncreaseIndentation()
400 unsigned offs = Content->SourceLineCache[lineNo]; in IncreaseIndentation()
/external/clang/lib/Rewrite/
DRewriter.cpp251 unsigned lineOffs = Content->SourceLineCache[lineNo]; in InsertText()
357 unsigned parentLineOffs = Content->SourceLineCache[parentLineNo]; in IncreaseIndentation()
358 unsigned startLineOffs = Content->SourceLineCache[startLineNo]; in IncreaseIndentation()
383 unsigned offs = Content->SourceLineCache[lineNo]; in IncreaseIndentation()
/external/llvm-project/clang/lib/Lex/
DScratchBuffer.cpp43 .SourceLineCache = SrcMgr::LineOffsetMapping(); in getToken()
/external/clang/include/clang/Basic/
DSourceManager.h119 unsigned *SourceLineCache; variable
146 SourceLineCache(nullptr), NumLines(0), BufferOverridden(false), in ContentCache()
155 : Buffer(nullptr, false), SourceLineCache(nullptr), in ContentCache()
161 RHS.SourceLineCache == nullptr && in ContentCache()
/external/llvm-project/clang/include/clang/Basic/
DSourceManager.h159 mutable LineOffsetMapping SourceLineCache; variable
194 assert(!RHS.Buffer && !RHS.SourceLineCache && in ContentCache()