Have a look at ArgInfo member of FunctionTypeInfo, the comment for ParamInfo structure has the relevant part:<div><br></div><div><div>/// ParamInfo - An array of paraminfo objects is allocated whenever a function</div><div>

/// declarator is parsed.  There are two interesting styles of arguments here:</div><div>/// K&R-style identifier lists and parameter type lists.  K&R-style identifier</div><div>/// lists will have information about the identifier,<b> but no type information.</b></div>

<div>/// Parameter type lists will have type info (if the actions module provides</div><div>/// it), but may have null identifier info: e.g. for 'void foo(int X, int)'.</div><div><br><div class="gmail_quote">On Mon, Dec 31, 2012 at 6:40 PM, kevinlynx <span dir="ltr"><<a href="mailto:kevinlynx@gmail.com" target="_blank">kevinlynx@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>I use clang to do some code analyse. And now i have a function below<br><br>    void func(p)<br>

<br>some compilers will process p as an integer. And i want to know how to determine whether p has a type declarator ?<br><br></div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>