On Tue, 17 Jul 2012 20:42:09 +0100, Jacob Carlborg <d...@me.com> wrote:
On 2012-07-17 17:13, Regan Heath wrote:
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.
Sure:
https://llvm.org/svn/llvm-project/cfe/trunk/tools/libclang/CXType.cpp
Just search for clang_isFunctionTypeVariadic.
It certainly seems intentional:
if (T->getAs<FunctionNoProtoType>())
return 1;
I wonder if it's a case of "we can't be certain, so lets assume it is" or
similar.
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/