Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test for derivatives of Struct Method Calls #719

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

vaithak
Copy link
Collaborator

@vaithak vaithak commented Jan 19, 2024

closes #49

@vaithak
Copy link
Collaborator Author

vaithak commented Jan 19, 2024

#49 is already fixed; this just ensures that we have proper testing for the examples mentioned in the issue.

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d8ef790) 94.54% compared to head (deb74e4) 94.60%.
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #719      +/-   ##
==========================================
+ Coverage   94.54%   94.60%   +0.05%     
==========================================
  Files          49       49              
  Lines        7189     7189              
==========================================
+ Hits         6797     6801       +4     
+ Misses        392      388       -4     
Files Coverage Δ
lib/Differentiator/StmtClone.cpp 57.61% <100.00%> (+1.64%) ⬆️
Files Coverage Δ
lib/Differentiator/StmtClone.cpp 57.61% <100.00%> (+1.64%) ⬆️

// CHECK-NEXT: int _d_x = 0;
// CHECK-NEXT: int _d_y = 1;
// CHECK-NEXT: int _d_x = 0;
// CHECK-NEXT: int _d_y = 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these white space changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say yes, because this makes the spacing uniform.with other lines of the same generated function and also matches the expected spacing.

Copy link
Owner

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vgvassilev vgvassilev merged commit 93cc725 into vgvassilev:master Jan 19, 2024
79 checks passed
@vaithak vaithak deleted the struct-method-call branch March 13, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloning call to method via clad::utils::StmtClone::VisitCXXMemberCallExpr causes segmentation fault
2 participants