How to parse multi-dimensional arrays with python libclang bindings
I’m having a difficult time with what, in my mind, should be a fairly simple task: Using the python bindings to libclang
I want to get the dimensions for a multi-dimensional array field of a POD C++ structure. When I traverse the AST, I can drill down the cursor containing the array field declaration, and I can even see that it has two child nodes containing, what I assume, are the sizes of each of its dimensions… but I’ve had no luck accessing the size as a value. Below is a minimal example of my attempt at accessing the size: