Enable template features#215
Conversation
lib/Interpreter/CppInterOp.cpp
Outdated
| std::vector<TCppFunction_t> GetTemplatedFuncs(TCppScope_t klass) | ||
| { | ||
|
|
||
| if (!klass) |
There was a problem hiding this comment.
warning: implicit conversion 'Cpp::TCppScope_t' (aka 'void *') -> bool [readability-implicit-bool-conversion]
| if (!klass) | |
| if (klass == nullptr) |
There was a problem hiding this comment.
Can you disable that clang-tidy check?
|
@maximusron, here is how we can apply git-clang-format on multiple commits: vgvassilev/clad#847 Can you update the CI action with that here too? |
|
Oh yeah I will do that, was wondering why the clang-format was throwing errors |
vgvassilev
left a comment
There was a problem hiding this comment.
Can you rebase this PR?
|
@vgvassilev the builds are failing because cppyy-backend has not been updated to the new usage of GetClassMethods where we have migrated to passing the result by reference as an out parameter. |
vgvassilev
left a comment
There was a problem hiding this comment.
Here is another round of review.
vgvassilev
left a comment
There was a problem hiding this comment.
This is looking good...
| std::vector<TCppFunction_t> GetClassMethods(TCppScope_t klass) | ||
| { | ||
|
|
||
| template <typename DeclType> |
There was a problem hiding this comment.
We do not need a template, we can take a DeclKind as a parameter.
fd89d8f to
2c0e719
Compare
|
The clang-format report seems bogus. This change requires changes to cppyy and that's why the other tests failed. |
This PR consolidates interfaces in CppInterOp that allows:
clang::LookupResultBestTemplateFunctionMatch