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

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

Completed in 529 milliseconds