]> granicus.if.org Git - clang/commit
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)
commit734e0ab01d133dc07f3c67b116894a4b1bb0be3c
tree2861cf5e11310b9a73fbe30e0df537ead8f02001
parentd2e9988fb1897dc0de3b666647efa0fc9d221658
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221184 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/callingconv.c
test/Sema/decl-microsoft-call-conv.c