History log of /external/clang/test/Sema/extern-redecl.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dd9459f8869f66409f7ea429053b453e33f6499c 13-Aug-2013 Richard Smith <richard-llvm@metafoo.co.uk> Fix implementation of C11 6.2.7/4 and C++11 [dcl.array]p3:

When a local extern declaration redeclares some other entity, the type of that
entity is merged with the prior type if the prior declaration is visible (in C)
or is declared in the same scope (in C++).

- Make LookupRedeclarationWithLinkage actually work in C++, use it in the right
set of cases, and make it track whether it found a shadowed declaration.
- Track whether we found a declaration in the same scope (for C++) including
across serialization and template instantiation.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188307 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c
088831d0b9185b806ead7dc47865b0d1b1a1d164 14-Apr-2013 John McCall <rjmccall@apple.com> Handle incompatible redeclarations of library builtins better.
Invalid redeclarations of valid explicit declarations shouldn't
take the same path as redeclarations of implicit declarations,
and invalid local extern declarations shouldn't foul things up
for everybody else.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179482 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c
927b0af2f0834bad37e3d2a1953804b0845d8711 13-Apr-2013 John McCall <rjmccall@apple.com> Don't replace an existing decl in the scope chains with its
local-extern redeclaration; type refinements, default arguments,
etc. must all be locally scoped.

rdar://13535367

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c
5b8740f840238b3616691e5b300df57a758f32a6 01-Apr-2013 John McCall <rjmccall@apple.com> Only merge down a variable type if the previous declaration was
visible. There's a lot of potential badness in how we're modelling
these things, but getting this much correct is reasonably easy.

rdar://13535367

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178488 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c
372df4548267ce5d6ecf1da68902f0d793271a4f 17-Dec-2012 Rafael Espindola <rafael.espindola@gmail.com> Fix isThisDeclarationADefinition for extern following tentative.

An extern declaration following a tentative definition should not itself be
considered a tentative definition.
Fixes pr14614.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c
e12a11f26b3ae5fca1178d415800b852d8d780ac 29-Jun-2011 Douglas Gregor <dgregor@apple.com> When redeclaring a local extern in the same scope, make sure that we
replace the existing declaration appropriately. Patch by Jordy Rose,
fixes PR10013 / <rdar://problem/9584157>.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c
7d99e989c1a20e358f472e35d615313f2fe223db 24-Jun-2010 Fariborz Jahanian <fjahanian@apple.com> Fixes a regression when redeclaration of a global satic
is an extern local to a function. Radar 8125274.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106773 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/extern-redecl.c