wlav / cppyy-backend

23 stars 28 forks source link

cppyy_get_all_cpp_names doesn't return all the names it should #3

Closed alexandrumc closed 2 years ago

alexandrumc commented 2 years ago

Hi!

For this code:

namespace GG {
      struct S { 
            int a; 
            int c; 
            S(int a, int c): _a{a}, _c{c} { } 
            S(): _a{0}, _c{0} { } 
      }; 
}

Calling cppyy_get_all_cpp_names(handle_of_S, &count) returns just ["S", "~S“]. Data members are not included. Also, it would be great to extend cppyy_get_all_cpp_names to work with any namespace, i.e. to return the names of classes, structs and all the other entities that are declared inside a namespace.

wlav commented 2 years ago

This one got snowed under with the holidays and it may be better to post all issues in the top-level cppyy package. Anyway, the idea to solve this and #340 on bitbucket is to use the logic from the TTabCom class from upstream.

wlav commented 2 years ago

Fix released with 2.3.0 and its dependencies, or cppyy-backend 1.14.8 to be more precise.