[cfe-dev] Get the type of pointer

Manuel Klimek klimek at google.com
Tue Oct 16 14:02:35 PDT 2012


+cfe-dev :)

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

> Type of the pointer means if it points to integer then it is Integer
> pointer.
> I am writing a pass in which I want to find all those pointers which are
> pointing to pointers. Also I want to find the type of pointer which I
> defined above.
>

I'm still unsure of the exact context you have, but others who know more
about writing passes might be able to help.

Cheers,
/Manuel



>
>
> On Wed, Oct 17, 2012 at 12:47 AM, Manuel Klimek <klimek at google.com> wrote:
>
>> 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
>>>
>>>
>>
>
>
> --
> Sunil Rathee
> MTech
> IIT Delhi
>
> Not going along with the crowd can help you stand out in the crowd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121016/3db2c301/attachment.html>


More information about the cfe-dev mailing list