[llvm] [llvm-cov] Remove View member from MCDCView and BranchView (PR #97734)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 07:39:01 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 f58930f705884dfac3bd8c481c827d027a6068cb 320688185c43a8fa5614475753f0d3bba9f9a2f8 -- llvm/tools/llvm-cov/CodeCoverage.cpp llvm/tools/llvm-cov/SourceCoverageView.cpp llvm/tools/llvm-cov/SourceCoverageView.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp
index 68535e1f3b..dfecddfaf4 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageView.cpp
@@ -179,8 +179,8 @@ void SourceCoverageView::addBranch(unsigned Line,
BranchSubViews.emplace_back(Line, std::move(Regions));
}
-void SourceCoverageView::addMCDCRecord(
- unsigned Line, SmallVector<MCDCRecord, 0> Records) {
+void SourceCoverageView::addMCDCRecord(unsigned Line,
+ SmallVector<MCDCRecord, 0> Records) {
MCDCSubViews.emplace_back(Line, std::move(Records));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/97734
More information about the llvm-commits
mailing list