]> granicus.if.org Git - clang/commit
Implement declaration merging for typedefs loaded from disjoint
authorDouglas Gregor <dgregor@apple.com>
Wed, 4 Jan 2012 16:44:10 +0000 (16:44 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 4 Jan 2012 16:44:10 +0000 (16:44 +0000)
commitda795b45f47df61a1b5a491e8d4ea078cf2a217b
tree72522014c932cf89f5ab08d515f03ad14f49ea3c
parentb3453a810407cd8d7f526c6faabe9a4c9f0a6f67
Implement declaration merging for typedefs loaded from disjoint
modules, so long as the typedefs refer to the same underlying
type. This ensures that the typedefs end up in the same redeclaration
chain.

To test this, fix name lookup for C/Objective-C to properly deal with
multiple declarations with the same name in the same scope.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
lib/Serialization/ASTReaderDecl.cpp