-
Notifications
You must be signed in to change notification settings - Fork 37
fix: codegen need not instantiate func body if it can be resolved #626
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 need not instantiate func body if it can be resolved #626
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.
clang-tidy made some suggestions
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #626 +/- ##
==========================================
+ Coverage 77.77% 77.96% +0.19%
==========================================
Files 9 9
Lines 3761 3767 +6
==========================================
+ Hits 2925 2937 +12
+ Misses 836 830 -6
🚀 New features to boost your workflow:
|
|
It would be good to cover that with tests. |
5570307 to
e19a731
Compare
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.
clang-tidy made some suggestions
703de04 to
b20d0d7
Compare
| EXPECT_EQ(instantiation_in_host_callable.getKind(), | ||
| Cpp::JitCall::kUnknown); // expect to fail with | ||
| // TClingCallFunc::make_wrapper: | ||
| // instantiation with no body! |
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.
Why not capturing the error?
This is the case where the the instantiated function is present in one of the libraries loaded or the host application.
b20d0d7 to
7a1ca48
Compare
vgvassilev
left a comment
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!
Description
This is the case where the instantiated function is present in one of the libraries loaded or the host application.
Fixes # (issue)
Fixes a test in cppyy.
Type of change
Please tick all options which are relevant.
Testing
Tests included.
Checklist