Home
last modified time | relevance | path

Searched refs:LineStart (Results 1 – 16 of 16) sorted by relevance

/external/llvm/tools/llvm-cov/
DCoverageSummaryInfo.cpp38 unsigned LineStart = std::numeric_limits<unsigned>::max(); in get() local
43 LineStart = std::min(LineStart, CR.LineStart); in get()
46 unsigned LineCount = LineEnd - LineStart + 1; in get()
57 LineCount -= CR.LineEnd - CR.LineStart + 1; in get()
60 for (unsigned I = CR.LineStart; I <= CR.LineEnd; ++I) in get()
61 ExecutionCounts[I - LineStart] = ExecutionCount; in get()
DSourceCoverageView.h42 unsigned getLine() const { return Region.LineStart; } in getLine()
/external/llvm/lib/Support/
DSourceMgr.cpp155 const char *LineStart = Loc.getPointer(); in GetMessage() local
157 while (LineStart != BufStart && LineStart[-1] != '\n' && in GetMessage()
158 LineStart[-1] != '\r') in GetMessage()
159 --LineStart; in GetMessage()
166 LineStr = std::string(LineStart, LineEnd); in GetMessage()
175 if (R.Start.getPointer() > LineEnd || R.End.getPointer() < LineStart) in GetMessage()
179 if (R.Start.getPointer() < LineStart) in GetMessage()
180 R.Start = SMLoc::getFromPointer(LineStart); in GetMessage()
186 ColRanges.push_back(std::make_pair(R.Start.getPointer()-LineStart, in GetMessage()
187 R.End.getPointer()-LineStart)); in GetMessage()
[all …]
DYAMLParser.cpp1617 auto LineStart = Current; in scanBlockScalar() local
1619 if (LineStart != Current) { in scanBlockScalar()
1621 Str.append(StringRef(LineStart, Current - LineStart)); in scanBlockScalar()
/external/llvm/include/llvm/ProfileData/
DCoverageMapping.h165 unsigned LineStart, ColumnStart, LineEnd, ColumnEnd; member
169 unsigned LineStart, unsigned ColumnStart, in CounterMappingRegion()
172 LineStart(LineStart), ColumnStart(ColumnStart), LineEnd(LineEnd), in CounterMappingRegion()
176 makeRegion(Counter Count, unsigned FileID, unsigned LineStart, in makeRegion()
178 return CounterMappingRegion(Count, FileID, 0, LineStart, ColumnStart, in makeRegion()
183 makeExpansion(unsigned FileID, unsigned ExpandedFileID, unsigned LineStart, in makeExpansion()
185 return CounterMappingRegion(Counter(), FileID, ExpandedFileID, LineStart, in makeExpansion()
191 makeSkipped(unsigned FileID, unsigned LineStart, unsigned ColumnStart, in makeSkipped()
193 return CounterMappingRegion(Counter(), FileID, 0, LineStart, ColumnStart, in makeSkipped()
199 return std::pair<unsigned, unsigned>(LineStart, ColumnStart); in startLoc()
/external/llvm/lib/ProfileData/
DCoverageMappingWriter.cpp173 assert(I->LineStart >= PrevLineStart); in write()
174 encodeULEB128(I->LineStart - PrevLineStart, OS); in write()
176 assert(I->LineEnd >= I->LineStart); in write()
177 encodeULEB128(I->LineEnd - I->LineStart, OS); in write()
179 PrevLineStart = I->LineStart; in write()
DCoverageMappingReader.cpp141 unsigned LineStart = 0; in readMappingRegionsSubArray() local
192 LineStart += LineStartDelta; in readMappingRegionsSubArray()
207 dbgs() << "Counter in file " << InferredFileID << " " << LineStart << ":" in readMappingRegionsSubArray()
208 << ColumnStart << " -> " << (LineStart + NumLines) << ":" in readMappingRegionsSubArray()
218 C, InferredFileID, ExpandedFileID, LineStart, ColumnStart, in readMappingRegionsSubArray()
219 LineStart + NumLines, ColumnEnd, Kind)); in readMappingRegionsSubArray()
DCoverageMapping.cpp304 startSegment(Region.LineStart, Region.ColumnStart, true, Region); in startSegment()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp703 const char *LineStart = MemBuf->getBufferStart(); in checkAllRulesInBuffer() local
706 while (LineStart != MemBuf->getBufferEnd() && std::isspace(*LineStart)) in checkAllRulesInBuffer()
707 ++LineStart; in checkAllRulesInBuffer()
709 while (LineStart != MemBuf->getBufferEnd() && *LineStart != '\0') { in checkAllRulesInBuffer()
710 const char *LineEnd = LineStart; in checkAllRulesInBuffer()
715 StringRef Line(LineStart, LineEnd - LineStart); in checkAllRulesInBuffer()
722 LineStart = LineEnd; in checkAllRulesInBuffer()
723 while (LineStart != MemBuf->getBufferEnd() && std::isspace(*LineStart)) in checkAllRulesInBuffer()
724 ++LineStart; in checkAllRulesInBuffer()
/external/llvm/include/llvm/ExecutionEngine/
DJITEventListener.h37 struct LineStart { struct
50 std::vector<LineStart> LineStarts;
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp211 std::min(FileLineRanges[R.FileID].first, R.LineStart); in gatherSkippedRegions()
226 unsigned LineStart = SM.getSpellingLineNumber(LocStart); in gatherSkippedRegions() local
231 *CovFileID, LineStart, ColumnStart, LineEnd, ColumnEnd); in gatherSkippedRegions()
234 if (Region.LineStart >= FileLineRanges[*CovFileID].first && in gatherSkippedRegions()
259 unsigned LineStart = SM.getSpellingLineNumber(LocStart); in emitSourceRegions() local
264 assert(LineStart <= LineEnd && "region start and end out of order"); in emitSourceRegions()
266 Region.getCounter(), *CovFileID, LineStart, ColumnStart, LineEnd, in emitSourceRegions()
289 unsigned LineStart = SM.getSpellingLineNumber(ParentLoc); in emitExpansionRegions() local
295 *ParentFileID, *ExpandedFileID, LineStart, ColumnStart, LineEnd, in emitExpansionRegions()
903 OS << "File " << R.FileID << ", " << R.LineStart << ":" << R.ColumnStart in dump()
/external/clang/lib/Basic/
DSourceManager.cpp1148 unsigned LineStart = SourceLineCache[LastLineNoResult - 1]; in getColumnNumber() local
1150 if (FilePos >= LineStart && FilePos < LineEnd) in getColumnNumber()
1151 return FilePos - LineStart + 1; in getColumnNumber()
1155 unsigned LineStart = FilePos; in getColumnNumber() local
1156 while (LineStart && Buf[LineStart-1] != '\n' && Buf[LineStart-1] != '\r') in getColumnNumber()
1157 --LineStart; in getColumnNumber()
1158 return FilePos-LineStart+1; in getColumnNumber()
/external/clang/lib/Format/
DFormat.cpp1122 StringRef LineStart; in tryMergeConflictMarkers() local
1124 LineStart = Buffer.substr(LineOffset); in tryMergeConflictMarkers()
1126 LineStart = Buffer.substr(LineOffset, FirstSpace - LineOffset); in tryMergeConflictMarkers()
1130 if (LineStart == "<<<<<<<" || LineStart == ">>>>") { in tryMergeConflictMarkers()
1132 } else if (LineStart == "|||||||" || LineStart == "=======" || in tryMergeConflictMarkers()
1133 LineStart == "====") { in tryMergeConflictMarkers()
1135 } else if (LineStart == ">>>>>>>" || LineStart == "<<<<") { in tryMergeConflictMarkers()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp372 const char *LineStart = TokInstantiationPtr-ColNo; in HandlePiece() local
382 for (const char* c = LineStart; c != TokInstantiationPtr; ++c) in HandlePiece()
/external/clang/lib/Frontend/
DTextDiagnostic.cpp1099 const char *LineStart = TokPtr-ColNo+1; // Column # is 1-based. in emitSnippetAndCaret() local
1108 if (size_t(LineEnd - LineStart) > MaxLineLengthToPrint) in emitSnippetAndCaret()
1112 std::string SourceLine(LineStart, LineEnd); in emitSnippetAndCaret()
/external/llvm/unittests/ProfileData/
DCoverageMappingTest.cpp187 ASSERT_EQ(3U, OutputCMRs[2].LineStart); in TEST_F()