[cfe-dev] How to get type of variable (whether it is int, float ... static .. const .. )

manavender reddy manavender.623 at gmail.com
Tue Aug 17 15:30:59 PDT 2010


Hi all,

How can i get the type of variable for eg. const int x = 1;
How can i get information that x is const and int. I have pointer to
DeclStmt, from that i can get VarDecl. I am stuck after that.

Thanks
Manavender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100817/3426f60d/attachment.html>


More information about the cfe-dev mailing list