Repository navigation
Add regression test for goto-instrument --show-struct-alignment - #9541
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #9541 +/- ##
===========================================
+ Coverage 81.29% 81.32% +0.02%
===========================================
Files 1725 1725
Lines 191680 191682 +2
Branches 73 73
===========================================
+ Hits 155835 155878 +43
+ Misses 35845 35804 -41 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Please put into |
No regression test used this option. The test checks that members which fit in a single memory operand are reported, and that wider ones are not. It also checks that padding counts towards the size of the memory operand, but is not reported as a member. Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
print_struct_alignment_problems reports the pairs of members that fit in
a single memory operand together with the first member of the group.
When a group has interferences, the members it covers are not meant to
start a group of their own ("no need to check with starting from an
already covered member"). This only worked for the first group of each
struct, though: first_time_seen_from was only cleared when printing the
header of the struct. For later groups, and for any group that runs to
the end of the struct, the covered members were reported again. For
example, for
struct groups { char g1, g2, g3, g4; int i1; char h1, h2, h3; int i2; };
g2/g3 was suppressed, but h2/h3 was reported, and for
struct tail { char t1, t2, t3; };
all of t1/t2, t1/t3 and t2/t3 were.
Clear first_time_seen_from whenever a pair is reported, and skip the
covered members also when the group runs to the end of the struct.
Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
fb91b6b to
ea22d08
Compare
No regression test used this option. The test checks that members which fit in a single memory operand are reported, and that wider ones are not.