how to determine a parameter has a type declarator inclang

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.

------------------ Original ------------------

Oh, I see. You need to look at the type as written of the ParmVarDecl.

John.