Lines Matching defs:line

252     for (uint32_t line = start_line; line <= end_line; ++line) {
253 if (!last_file_sp->LineIsValid(line)) {
260 uint32_t bp_count = bp_locs->NumLineEntriesWithLine(line);
270 (line == curr_line) ? current_line_cstr : "");
283 line);
289 if (line == curr_line && column)
293 last_file_sp->DisplaySourceLines(line, columnToHighlight, 0, 0, s);
294 if (column != 0 && line == curr_line &&
298 last_file_sp->GetLine(line, src_line);
300 // Insert a space for every non-tab character in the source line.
318 "{0}: source file checksum mismatch between line table "
328 lldb::SupportFileSP support_file_sp, uint32_t line, uint32_t column,
337 if (line > context_before)
338 start_line = line - context_before;
344 if (line == 0)
350 start_line, count, line, column, current_line_cstr, s, bp_locs);
355 // If we get called before anybody has set a default file and line, then try
396 uint32_t line) {
402 m_last_line = line;
419 // If nobody has set the default file and line then try here. If there's
441 SetDefaultFileAndLine(line_entry.file_sp, line_entry.line);
568 uint32_t SourceManager::File::GetLineOffset(uint32_t line) {
569 if (line == 0)
572 if (line == 1)
575 if (CalculateLineOffsets(line)) {
576 if (line < m_offsets.size())
577 return m_offsets[line - 1]; // yes we want "line - 1" in the index
587 const char *SourceManager::File::PeekLineData(uint32_t line) {
588 if (!LineIsValid(line))
591 size_t line_offset = GetLineOffset(line);
597 uint32_t SourceManager::File::GetLineLength(uint32_t line,
599 if (!LineIsValid(line))
602 size_t start_offset = GetLineOffset(line);
603 size_t end_offset = GetLineOffset(line + 1);
625 bool SourceManager::File::LineIsValid(uint32_t line) {
626 if (line == 0)
629 if (CalculateLineOffsets(line))
630 return line < m_offsets.size();
651 size_t SourceManager::File::DisplaySourceLines(uint32_t line,
687 line <= context_before ? 1 : line - context_before;
690 const uint32_t end_line = line + context_after;
704 // Ensure we get an end of line character one way or another.
741 bool SourceManager::File::CalculateLineOffsets(uint32_t line) {
742 line =
743 UINT32_MAX; // TODO: take this line out when we support partial indexing
744 if (line == UINT32_MAX) {
757 // Calculate all line offsets from scratch
788 // Calculate all line offsets up to "line"
860 stream << "Modification time MD5 Checksum (on-disk) MD5 Checksum (line table) Lines Path\n";