Don't diagnose no-prototype callee-cleanup function definitions
authorReid Kleckner <reid@kleckner.net>
Mon, 3 Nov 2014 21:24:50 +0000 (21:24 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 3 Nov 2014 21:24:50 +0000 (21:24 +0000)
commit1eaa844f3e6e8140375212f6578d449087f0d6f4
treef16635230cc5798b1700f87ab7c57e3ba870d1ff
parentf0c7dbd1c8026002afce3e74a72e3707b5b530c9
Don't diagnose no-prototype callee-cleanup function definitions

We already have a warning on the call sites of code like this:
  void f() { }
  void g() { f(1, 2, 3); }
t.c:2:21: warning: too many arguments in call to 'f'

We can limit ourselves to diagnosing unprototyped forward declarations
of f to cut down on noise.

llvm-svn: 221184
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/callingconv.c
clang/test/Sema/decl-microsoft-call-conv.c