[llvm] Reland "[llvm-cov] Add support for baseline coverage" (PR #144130)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 10:50:42 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h llvm/lib/ProfileData/Coverage/CoverageMapping.cpp llvm/tools/llvm-cov/CodeCoverage.cpp llvm/unittests/ProfileData/CoverageMappingTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
index 39aa64eeb..ec81e5f27 100644
--- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp
+++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
@@ -277,9 +277,8 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::tuple<bool, bool>> {
CoverageReaders.push_back(
std::make_unique<CoverageMappingReaderMock>(Funcs));
}
- auto ProfileReaderRef =
- std::make_optional(
- std::reference_wrapper<IndexedInstrProfReader>(*ProfileReader));
+ auto ProfileReaderRef = std::make_optional(
+ std::reference_wrapper<IndexedInstrProfReader>(*ProfileReader));
return CoverageMapping::load(CoverageReaders, ProfileReaderRef);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/144130
More information about the llvm-commits
mailing list