]> granicus.if.org Git - clang/commit
Handle any undeclared parameters in a K&R-style function with a
authorDouglas Gregor <dgregor@apple.com>
Fri, 23 Jan 2009 16:23:13 +0000 (16:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 23 Jan 2009 16:23:13 +0000 (16:23 +0000)
commitbe109b3e768b70f9efb106d25d6b5a2c72c5a9b8
treebc437157be90c88d16db10e889293de8fb05bfe3
parent562c4d90418996c927f43e89250570d9967d6ecc
Handle any undeclared parameters in a K&R-style function with a
special action, inside function prototype scope. This avoids confusion
when we try to inject these parameters into the scope of the function
body before the function itself has been added to the surrounding
scope. Fixes <rdar://problem/6097326>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62849 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Action.h
lib/Parse/Parser.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
test/Sema/function.c
test/Sema/redefinition.c