K&R-style variadic functions
Regan Heath
regan at netmail.co.nz
Tue Jul 17 08:13:26 PDT 2012
On Tue, 17 Jul 2012 15:50:27 +0100, Jacob Carlborg <doob at me.com> wrote:
> On 2012-07-17 16:37, Regan Heath wrote:
>
>> All my googling for "old style" "variadic" etc returned the use of
>> va_alist and va_dcl so I can't see where/why Clang would do what it's
>> doing.
>
> To be accurate it's the libclang function "clang_isFunctionTypeVariadic"
> that returns true.
>
> http://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#ga343b2463b0ed4b259739242cf26c3ae2
Is Clang open source, can we see the code for that function? Perhaps it's
a bug.. ANSI C may have made () without "void" obsolete, but no compiler
I've ever used has actually enforced that - or perhaps C++ made old-style
function definition/declarations obsolete and allowed () back again.
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list