[cfe-dev] Variable number of function argunents

Fariborz Jahanian fjahanian at apple.com
Wed Aug 18 10:34:16 PDT 2010


I have found doxygen extremely useful in finding the APIs for AST  
nodes. Assuming you know the AST
you are interested (-ast-dump will give you that). You can find that  
you are looking for (if there is one).

http://clang.llvm.org/doxygen/classes.html

- fariborz

On Aug 18, 2010, at 8:38 AM, Douglas Gregor wrote:

>
> On Aug 18, 2010, at 8:31 AM, Murat B wrote:
>
>> Dear all,
>>
>> I would like ask you if it is possible to determine if a function  
>> has variable number of arguments such as printf.
>>
>> I could not find a way using the classes FunctionDecl and  
>> FunctionProtoType.
>
>
> FunctionDecl::isVariadic() and FunctionProtoType::isVariadic(),  
> respectively.
>
> 	- Doug
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100818/57b30932/attachment.html>


More information about the cfe-dev mailing list