[llvm] [Coverage] Speed up function record iteration (PR #122050)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 22:11:09 PST 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 9184c42869b87a59839cafdb8a3679e7ec2faeb1 c664ae1d4e5fb41ce0e60ee9941e26db29f57725 --extensions cpp,h -- llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h b/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
index afd7597077..dec9bcf93f 100644
--- a/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
+++ b/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
@@ -760,8 +760,8 @@ public:
ArrayRef<unsigned> RecordIndices_ = {})
: Records(Records_), RecordIndices(RecordIndices_),
CurrentIndex(RecordIndices.begin()),
- // If `RecordIndices` is provided, we can skip directly to the first index
- // it provides.
+ // If `RecordIndices` is provided, we can skip directly to the first
+ // index it provides.
Current(CurrentIndex == RecordIndices.end() ? Records.begin()
: &Records[*CurrentIndex]),
Filename(Filename) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/122050
More information about the llvm-commits
mailing list