[cfe-dev] python bindings
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Feb 21 13:14:07 PST 2013
On Feb 20, 2013, at 6:07 PM, Sam Price <thesamprice at gmail.com> wrote:
> I got the python bindings to work,
> However I want to get size, and offset information for various types.
>
> This doesn't seem to be exposed in the Index.h file
>
> Would I just add new routines to that file?
> Where are the index.h routines at?
> Would I add a new routine
> int getSizeOfCursor(Cursor)
> Get the ASTContext from the cursor,
> and then do GetTypeInfo from the ASTContext?
>
> and then expose it on the cindex.py routine?
Are you interested in something like:
"int clang_getSizeOfType(CXType T);"
?
Start by taking a look at how
"int clang_getNumArgTypes(CXType T);"
is implemented.
>
> --
> Thanks,
>
> Sam Price
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list