Skip to content

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

Merged
merged 6 commits into from
May 15, 2025

Conversation

Vipul-Cariappa
Copy link
Collaborator

Description

Generator operations instead of function calls similar to upstream

Fixes # (issue)

fixes test_cpp11features.py::TestCPP11FEATURES::test11_chrono in cppyy

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Please describe the test(s) that you added and ran to verify your changes.

Checklist

  • I have read the contribution guide recently

Sorry, something went wrong.

Copy link
Collaborator

@aaronj0 aaronj0 left a 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)

Copy link
Contributor

github-actions bot commented May 5, 2025

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

github-actions bot commented May 5, 2025

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@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.

We should add a relevant test.

Copy link
Contributor

github-actions bot commented May 6, 2025

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link

codecov bot commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.45%. Comparing base (28ba16e) to head (c3e2782).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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     
Files with missing lines Coverage Δ
lib/Interpreter/CppInterOp.cpp 84.25% <100.00%> (+0.12%) ⬆️
Files with missing lines Coverage Δ
lib/Interpreter/CppInterOp.cpp 84.25% <100.00%> (+0.12%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Collaborator

@aaronj0 aaronj0 left a 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

@aaronj0
Copy link
Collaborator

aaronj0 commented May 15, 2025

A reminder to squash into a single commit before merging :)

Copy link
Contributor

@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. Please use squash on merge.

@Vipul-Cariappa Vipul-Cariappa merged commit 03135b6 into compiler-research:main May 15, 2025
74 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/chrono branch May 15, 2025 13:18
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request May 16, 2025
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request May 16, 2025
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request May 16, 2025
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request May 16, 2025
Vipul-Cariappa added a commit to compiler-research/cppyy that referenced this pull request May 16, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

None yet

3 participants