[cfe-dev] Add a parameter to FunctionDecl

Eli Friedman eli.friedman at gmail.com
Wed Nov 14 14:25:26 PST 2012


On Wed, Nov 14, 2012 at 2:19 PM, Mohammad Adil <madil90 at gmail.com> wrote:
> Hi,
>   There is no function to get FunctionTypeLoc from a FunctionDecl. Is there
> any other way to get a FunctionTypeLoc?

You get a TypeSourceInfo from the FunctionDecl, get a TypeLoc from the
TypeSourceInfo, then convert that to a FunctionTypeLoc.

-Eli



More information about the cfe-dev mailing list