[cfe-dev] Variable number of function argunents

Douglas Gregor dgregor at apple.com
Wed Aug 18 08:38:01 PDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100818/0f3d741b/attachment.html>


More information about the cfe-dev mailing list