[llvm] [llvm-cov] format cells in code coverage report with 0/0 branches/functions/lines differently (PR #75780)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 01:23:53 PST 2023


Hana =?utf-8?q?Dusíková?= <hanicka at hanicka.net>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/75780 at github.com>


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 06b2da4155a6bd88747307c108536a957d0f1daa 67c537c168bba30b66d29b64381e6fad65c8d76c -- llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp b/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
index 82a1809a00..44916fede9 100644
--- a/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
@@ -549,7 +549,7 @@ Error CoveragePrinterHTML::createIndexFile(
       EmptyFiles = true;
   }
   OSRef << EndTableBody;
-  
+
   OSRef << BeginTableFoot;
   emitFileSummary(OSRef, "Totals", Totals, /*IsTotals=*/true);
   OSRef << EndTableFoot;
@@ -570,7 +570,7 @@ Error CoveragePrinterHTML::createIndexFile(
       }
     OSRef << EndTable << EndCenteredDiv;
   }
-  
+
   OSRef << scriptForSorting;
 
   OSRef << tag("h5", escape(Opts.getLLVMVersionString(), Opts));

``````````

</details>


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


More information about the llvm-commits mailing list