Vendor import of llvm-project main llvmorg-18-init-18359-g93248729cfae,
the last commit before the upstream release/18.x branch was created.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user