[cfe-dev] how to determine a parameter has a type declarator in clang

John McCall rjmccall at apple.com
Thu Jan 3 12:51:52 PST 2013


On Dec 30, 2012, at 11:44 PM, kevin <kevinlynx at gmail.com> wrote:
> I use clang to do some code analyse. And now i have a function below
> 
>     void func(p)
> 
> some compilers will process p as an integer. And i want to know how to determine whether p has a type declarator ?

You can ask whether the function has a written prototype.

John.



More information about the cfe-dev mailing list