]> granicus.if.org Git - clang/commit
C99 DR #316 implies that the function parameter types that are known
authorDouglas Gregor <dgregor@apple.com>
Wed, 25 Feb 2009 16:33:18 +0000 (16:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 25 Feb 2009 16:33:18 +0000 (16:33 +0000)
commit2224f84658fb9b3725a31f2680edb64ae73bf705
treed8b3f0a9bfc05c8565e35df1c47b5cc649377136
parent70f2a0485dd81e6684553eb5537a27db4176ed45
C99 DR #316 implies that the function parameter types that are known
only from a function definition (that does not have a prototype) are
only used to determine the compatible with other declarations of that
same function. In particular, when referencing the function we pretend
as if it does not have a prototype. Implement this behavior, which
fixes PR3626.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65460 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/RewriteObjC.cpp
include/clang/AST/Decl.h
lib/AST/Decl.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/Sema/arg-duplicate.c
test/Sema/knr-def-call.c [new file with mode: 0644]