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:
Dimitry Andric
2024-01-24 20:11:41 +01:00
parent 950076cd18
commit 4df029cc74
1191 changed files with 53530 additions and 35943 deletions
+4 -2
View File
@@ -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(