where is the array and how can I get it?

Hello All,

I'm trying to get imformation about a array.The position,type and variables
are included in the information.For example,a program like this:
int main()
    int i=5;
    int num[i]={1,2,3,4,5}
I want to get the the location is line:4、row:8,type is int and varible is
i.How can I get them and
which API may work if I need?


Need more information.

Which interface are you using (the C API or the C++ API or the python
bindings or something else)? How do you identify which array you want
information about?

I am trying to use clang API and I don't know Which API would work;As long as
there are arrays,no matter which array them are,I am like to get the
imfomation about them.


^ an overview of the different libraries you can use and their pros and cons…