[compiler-rt] [llvm] [Coverage] Ignore unused functions if the count is 0. (PR #107661)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 17:26:45 PDT 2024


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 b368404dee8c341dc022a9e9a868f5a268e92033 5886ec3034cd63af60cd6ad0743c1fe08060a4ff --extensions cpp -- compiler-rt/test/profile/instrprof-merging-2.cpp llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
``````````

</details>

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

``````````diff
diff --git a/compiler-rt/test/profile/instrprof-merging-2.cpp b/compiler-rt/test/profile/instrprof-merging-2.cpp
index 4c25798047..7f5498654c 100644
--- a/compiler-rt/test/profile/instrprof-merging-2.cpp
+++ b/compiler-rt/test/profile/instrprof-merging-2.cpp
@@ -24,7 +24,7 @@
 // CHECK-NEXT:  |};
 // CHECK-NEXT:  |
 
-#--- test.h
+#-- - test.h
 struct Test {
   int getToTest() {
     for (int i = 0; i < 1; i++) {
@@ -39,7 +39,7 @@ struct Test {
   }
 };
 
-#--- test1.cpp
+#-- - test1.cpp
 #include "test.h"
 int main() {
   Test t;
@@ -47,8 +47,6 @@ int main() {
   return 0;
 }
 
-#--- test2.cpp
+#-- - test2.cpp
 #include "test.h"
-int main() {
-  return 0;
-}
+int main() { return 0; }

``````````

</details>


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


More information about the llvm-commits mailing list