diff options
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-cov/SourceCoverageView.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-cov/SourceCoverageView.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/tools/llvm-cov/SourceCoverageView.cpp b/contrib/llvm-project/llvm/tools/llvm-cov/SourceCoverageView.cpp index c910edd1db78..71edd5fec428 100644 --- a/contrib/llvm-project/llvm/tools/llvm-cov/SourceCoverageView.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-cov/SourceCoverageView.cpp @@ -48,7 +48,7 @@ std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension, sys::path::append(FullPath, PathFilename); sys::path::native(FullPath); - return std::string(FullPath.str()); + return std::string(FullPath); } Expected<CoveragePrinter::OwnedStream> @@ -130,6 +130,8 @@ bool SourceCoverageView::shouldRenderRegionMarkers( const auto *CurSeg = Segments[I]; if (!CurSeg->IsRegionEntry || CurSeg->Count == LCS.getExecutionCount()) continue; + if (!CurSeg->HasCount) // don't show tooltips for SkippedRegions + continue; return true; } return false; @@ -163,7 +165,7 @@ std::string SourceCoverageView::getSourceName() const { SmallString<128> SourceText(SourceName); sys::path::remove_dots(SourceText, /*remove_dot_dot=*/true); sys::path::native(SourceText); - return std::string(SourceText.str()); + return std::string(SourceText); } void SourceCoverageView::addExpansion( |