-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add variadic support for templates #324
base: main
Are you sure you want to change the base?
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #324 +/- ##
==========================================
- Coverage 70.87% 70.85% -0.03%
==========================================
Files 9 9
Lines 3533 3537 +4
==========================================
+ Hits 2504 2506 +2
- Misses 1029 1031 +2
|
e87e146
to
9412530
Compare
clang-tidy review says "All clean, LGTM! 👍" |
9412530
to
2ef2734
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.
We don't seem to have tests for the new code.
There is an added unittest... It is still a draft though, will update with a case for |
2ef2734
to
3603d06
Compare
clang-tidy review says "All clean, LGTM! 👍" |
TEST(FunctionReflectionTest, InstantiateVariadicFunctionTemplate) { | ||
std::vector<Decl*> Decls; | ||
std::string code = R"( | ||
template<typename... Args> void VariadicFnTemplate(Args... args) {} |
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.
Can we include the example of #305?
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.
The current test mimics the same variadic template, I am extending it to initialize using a template pack which should cover the other branch for codecov
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.
Still worth adding the test from the issue and adding code to support it.
3603d06
to
ad55091
Compare
clang-tidy review says "All clean, LGTM! 👍" |
No description provided.