]> granicus.if.org Git - clang/commit
Allow "overloadable" functions in C to be declared as variadic without
authorDouglas Gregor <dgregor@apple.com>
Wed, 18 Feb 2009 07:07:28 +0000 (07:07 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 18 Feb 2009 07:07:28 +0000 (07:07 +0000)
commit965acbb321e94e36aa5365126eee46b97745fdbb
treeb90c16f0aedbfca9146e07251c896cd22d9fd9c6
parentc6c16af963eddc3e9b75b5d2614d069e1162fe27
Allow "overloadable" functions in C to be declared as variadic without
any named parameters, e.g., this is accepted in C:

  void f(...) __attribute__((overloadable));

although this would be rejected:

  void f(...);

To do this, moved the checking of the "ellipsis without any named
arguments" condition from the parser into Sema (where it belongs anyway).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64902 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LanguageExtensions.html
include/clang/Basic/DiagnosticParseKinds.def
include/clang/Basic/DiagnosticSemaKinds.def
include/clang/Parse/DeclSpec.h
lib/Parse/DeclSpec.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaType.cpp
test/Sema/overloadable.c