Thanks, it worked on 1 parameter function, but does not work on more than one parameters function, say,<br><br>    void func(int a, b)<br><br>`hasWrittenPrototype` still return true, and `b` will also get a default `int` type. <br><br><div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "John McCall"<rjmccall@apple.com>;</div><div><b>Date: </b> Fri, Jan 4, 2013 04:51 AM</div><div><b>To: </b> "kevin"<kevinlynx@gmail.com>; <wbr></div><div><b>Cc: </b> "cfe-dev"<cfe-dev@cs.uiuc.edu>; <wbr></div><div><b>Subject: </b> Re: [cfe-dev] how to determine a parameter has a type declarator inclang</div></div><div><br></div>On Dec 30, 2012, at 11:44 PM, kevin <kevinlynx@gmail.com> wrote:<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>You can ask whether the function has a written prototype.<br><br>John.<br></div>