-
Notifications
You must be signed in to change notification settings - Fork 36
Add LookupConstructors and fix logic in IsConstructor for templates
#535
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
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
lib/Interpreter/CppInterOp.cpp
Outdated
| if (R.empty()) | ||
| return; | ||
| Sema::NotForRedeclaration); | ||
| auto DC = clang::Decl::castToDeclContext(D); |
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.
warning: 'auto DC' can be declared as 'auto *DC' [llvm-qualified-auto]
| auto DC = clang::Decl::castToDeclContext(D); | |
| auto *DC = clang::Decl::castToDeclContext(D); |
71c60ae to
349ff71
Compare
783838a to
222fd9c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #535 +/- ##
==========================================
+ Coverage 75.46% 75.94% +0.47%
==========================================
Files 9 9
Lines 3628 3646 +18
==========================================
+ Hits 2738 2769 +31
+ Misses 890 877 -13
🚀 New features to boost your workflow:
|
222fd9c to
a816f36
Compare
|
The added tests here depend on #536 to obtain the function signatures correctly for |
f3a3b65 to
68b883c
Compare
68b883c to
0c0872d
Compare
7dc0ddf to
dda332e
Compare
0bf59e5 to
247a4f1
Compare
Also splits IsTemplatedFunction into `IsTemplatedFunction` for FunctionTemplateDecl, and `IsTemplateInstantiationOrSpecialization` when we have an instantiation or a specialization. Accumulate constructors with the new lookup in `GetClassTemplatedMethods` enabling 8 tests.
247a4f1 to
4159d1b
Compare
cfebdcc to
abfe633
Compare
abfe633 to
6e57f12
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!
Add
LookupConstructorsand fixes logic inIsConstructorfor templates. Accumulate constructors with this new lookup inGetClassTemplatedMethodsenabling 8 tests. Also splits IsTemplatedFunction intoIsTemplatedFunctionfor FunctionTemplateDecl, andIsTemplateInstantiationOrSpecializationwhen we have an instantiation or a specialization.