-
Notifications
You must be signed in to change notification settings - Fork 37
fix: codegen for templates with multiple parameter packs #640
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 templates with multiple parameter packs #640
Conversation
adapted from cling
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!
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #640 +/- ##
==========================================
+ Coverage 78.69% 78.77% +0.07%
==========================================
Files 9 9
Lines 3835 3849 +14
==========================================
+ Hits 3018 3032 +14
Misses 817 817
🚀 New features to boost your workflow:
|
|
clang-tidy review says "All clean, LGTM! 👍" |
| SourceLocation noLoc; | ||
| QualType TT = S.CheckTemplateIdType(TemplateName(TemplateD), noLoc, TLI); | ||
| if (TT.isNull()) | ||
| return nullptr; |
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.
I'd drop that if we can't cover it with tests.
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.
This is required; it is due to a template instantiation failing in Eigen (crashes).
Also, fixing the instantiation in this PR does not make sense. Will look into that once I get to the eigen tests.
And writing a test that is supposed to fail is bad again.
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.
Ok. Understood
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.
Let’s merge it then.
Description
adapted from cling
Fixes # (issue)
Fixes 2 issues in cppyy.
Type of change
Please tick all options which are relevant.
Testing
Included.
Checklist