[cfe-users] Distinguishing between "variable" and "type" declaration

Anna Zaks ganna at apple.com
Fri Feb 8 09:12:40 PST 2013


Nathan,

cfe-dev list would be better suited for this question. 

Anna.
On Feb 8, 2013, at 8:59 AM, Nathan Hüsken <nathan.huesken at posteo.de> wrote:

> Hey,
> 
> I am using the python interface for libclang.
> I am getting the cursor for a translation unit and work through all
> childrens.
> 
> Than I am testing with cursor.kind.is_declaration if something is a
> delcaration.
> But now I want to distinguish between variable delcaration and
> declaration for functions, classes (and other types).
> How can I do this?
> 
> Thanks!
> Nathan
> _______________________________________________
> cfe-users mailing list
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users





More information about the cfe-users mailing list