[cfe-dev] 'func()' vs. 'func(void)' in libclang
Joe Groff
arcata at gmail.com
Mon Feb 25 13:20:14 PST 2013
On Mon, Feb 25, 2013 at 10:24 AM, jaytee <aloha_arts at yahoo.com> wrote:
> Hello all!
>
> Is there a way I can determine with libclang, whether a function is
> declared
> as 'func()' or 'func(void)'?
>
> Thank you!
>
Assuming this is for C code, clang_isFunctionTypeVariadic will be true for
the CXType of the former but not the latter.
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130225/7ad82a81/attachment.html>
More information about the cfe-dev
mailing list