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

Nathan Hüsken nathan.huesken at posteo.de
Fri Feb 8 08:59:25 PST 2013


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



More information about the cfe-users mailing list