[cfe-dev] TypeLoc of function result type?

Manuel Klimek klimek at google.com
Wed Sep 4 06:43:53 PDT 2013


On Wed, Sep 4, 2013 at 1:35 PM, Gábor Kozár <kozargabor at gmail.com> wrote:

> **
> Hi,
>
> I want to get the TypeLoc of a FunctionDecl's result type. I can easily
> get the TypeLoc of the parameters, but there seem to be no way to get the
> same information about the result type. What am I missing here?
>

FD->getTypeSourceInfo().getTypeLoc().getAs<FunctionTypeLoc>()->getResultLoc()
(minus that there might be pointers in between ;)

Cheers,
/Manuel


>
> Thanks!
>
> --
>  Gábor Kozár -- ShdNx
>  kozargabor at gmail.com
>
>
> _______________________________________________
> 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/20130904/d8ea73cd/attachment.html>


More information about the cfe-dev mailing list