Skip to content

fix JITcall codegen to handle move semantics #657

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 1 commit into from
Jul 17, 2025

Conversation

Vipul-Cariappa
Copy link
Collaborator

Description

Required for std::unique_ptr

Taken from Cling

Fixes # (issue)

1 test in cppyy

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Checklist

  • I have read the contribution guide recently

Copy link

codecov bot commented Jul 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.30%. Comparing base (55c93cd) to head (8b4e0e1).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #657      +/-   ##
==========================================
+ Coverage   79.25%   79.30%   +0.05%     
==========================================
  Files           9        9              
  Lines        3866     3876      +10     
==========================================
+ Hits         3064     3074      +10     
  Misses        802      802              
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 87.40% <100.00%> (+0.05%) ⬆️
Files with missing lines Coverage Δ
lib/CppInterOp/CppInterOp.cpp 87.40% <100.00%> (+0.05%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

github-actions bot commented Jul 4, 2025

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

// available, while there is a move constructor.

// move construction as needed for classes (note that this is implicit)
static bool included_utility = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this would work well when we have a stack of interpreters, that is changing the active interpreter. Perhaps a simple lookup will help, clang::Sema already getStdNamespace.

@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/std-move branch 2 times, most recently from b86e4a9 to 62c3217 Compare July 7, 2025 07:36
Copy link
Contributor

github-actions bot commented Jul 7, 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.

LGTM!

Copy link
Contributor

github-actions bot commented Jul 7, 2025

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

@Vipul-Cariappa Vipul-Cariappa force-pushed the dev/std-move branch 2 times, most recently from 725bb46 to 67ea645 Compare July 17, 2025 07:00
Copy link
Contributor

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

@mcbarton
Copy link
Collaborator

mcbarton commented Jul 17, 2025

This is also managing to fix the failing Emscripten job on main. No idea why.

@mcbarton mcbarton requested a review from vgvassilev July 17, 2025 08:54
Required for std::unique_ptr

Taken from Cling
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!

Copy link
Contributor

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

@Vipul-Cariappa Vipul-Cariappa merged commit 10e0d5d into compiler-research:main Jul 17, 2025
42 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/std-move branch July 17, 2025 12:48
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.

3 participants