compiler-research / CppInterOp

A Clang-based C++ Interoperability Library
Other
43 stars 21 forks source link

Fix class static variables #26

Closed sudo-panda closed 1 year ago

sudo-panda commented 1 year ago

This PR adds functions that are necessary to fix class static variables in cppyy.

@vgvassilev the address of class static variables is not being returned. Offending lines of code: https://github.com/compiler-research/InterOp/blob/515ef931fc6db076bc4c414a54e1b24a8c8b2858/lib/Interpreter/InterOp.cpp#L794-L797

The above code returns nullptr. This test case has been added to GetVariableOffset test.