[cfe-dev] Get the type of pointer

Manuel Klimek klimek at google.com
Tue Oct 16 12:17:22 PDT 2012


On Tue, Oct 16, 2012 at 9:08 PM, sunil rathee <ratheesuniljec at gmail.com>wrote:

> Hi,
> Is there any solution by which we can find the type of the pointer. Means
> can we find is it Integer pointer or Double pointer etc.
> Also can we find is it pointing to another pointer or not?


Assuming you mean in the Clang AST, but I'm not sure what you mean with
"find the type of the pointer". What do you have? A pointer declaration? An
expression? A PointerType and you want to figure out more about it (if the
latter, see http://clang.llvm.org/doxygen/classclang_1_1PointerType.html)

Cheers,
/Manuel



>
>
> --
> Sunil Rathee
> MTech
> IIT Delhi
>
> Not going along with the crowd can help you stand out in the crowd
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121016/6a8618f1/attachment.html>


More information about the cfe-dev mailing list