-
Notifications
You must be signed in to change notification settings - Fork 31
fix codegen for operator wrapper #571
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
fix codegen for operator wrapper #571
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! This fixes the std::chrono
test case and functionally brings the wrapper closer to upstream cppyy. The expression !FD->isOverloadedOperator() || (FD->getOverloadedOperator() == clang::OO_Call)
can be stored in a flag to improve readability, feel free to merge once that is addressed (and the bots pass)
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a relevant test.
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
6ea4209
to
802d066
Compare
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #571 +/- ##
==========================================
+ Coverage 76.37% 76.45% +0.07%
==========================================
Files 9 9
Lines 3645 3648 +3
==========================================
+ Hits 2784 2789 +5
+ Misses 861 859 -2
🚀 New features to boost your workflow:
|
Generator operations instead of function calls similar to upstream
similar to upstream
769796f
to
c3e2782
Compare
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I believe all comments are addressed
A reminder to squash into a single commit before merging :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Please use squash on merge.
Description
Generator operations instead of function calls similar to upstream
Fixes # (issue)
fixes
test_cpp11features.py::TestCPP11FEATURES::test11_chrono
in cppyyType of change
Please tick all options which are relevant.
Testing
Please describe the test(s) that you added and ran to verify your changes.
Checklist