[llvm] llvm-cov: Fix a grammar error (PR #179450)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 8 04:07:41 PST 2026


================
@@ -472,7 +472,10 @@ std::unique_ptr<CoverageMapping> CodeCoverageTool::load() {
   auto Coverage = std::move(CoverageOrErr.get());
   unsigned Mismatched = Coverage->getMismatchedCount();
   if (Mismatched) {
-    warning(Twine(Mismatched) + " functions have mismatched data");
+    if Mismatched
+      == 1 warning(Twine(Mismatched) + " function has mismatched data");
+    else
+      warning(Twine(Mismatched) + " functions have mismatched data");
----------------
cerdelen wrote:

In the link you provided it also says to include a unit test.

Trying to locate unit tests for tools llvm-cov it seems there is none, as there is no folder llvm-cov in llvm/unittests/tools.

https://github.com/llvm/llvm-project/pull/179450


More information about the llvm-commits mailing list