[cfe-dev] how to determine a parameter has a type declarator inclang
John McCall
rjmccall at apple.com
Thu Jan 3 17:56:11 PST 2013
On Jan 3, 2013, at 5:36 PM, kevinlynx <kevinlynx at gmail.com> wrote:
> Thanks, it worked on 1 parameter function, but does not work on more than one parameters function, say,
>
> void func(int a, b)
>
> `hasWrittenPrototype` still return true, and `b` will also get a default `int` type.
Oh, I see. You need to look at the type as written of the ParmVarDecl.
John.
More information about the cfe-dev
mailing list