Open Wentzell opened 6 years ago
Ok, we discussed, we found that there is a fix in lib clang. Was it a fix in the cindex.py only ? At some point, we might want to include cindex.py in our code, also to make python 2 and 3 transition easier and not depends on packaging systems to have this file or not ...
PS : if yes, we could simply add cindex.py and fix the bug now.
I tried to wrap to following minimal example to test the wrapping of an instantiated template class
As expected both classes appear in the desc file. However, for the
toto
class the members are not wrapped at all.I had a brief look at the AST I got from the clang.cindex by iterating recursively over the children of all the nodes and found
i.e. the instantiation has no children in the cindex AST. I suppose this is the reason why no members are added by cpp2py?
The strange thing is that the AST using
clang -cc1 -ast-dump
looks different and does indeed specify all the information necessary