[modules] Even if we already have a definition of a class, loading in another
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 25 Feb 2015 22:20:13 +0000 (22:20 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 25 Feb 2015 22:20:13 +0000 (22:20 +0000)
commit8cebe37fe9e1f56deb7e47f5aefa647960cdd840
tree6675477db77032f69e1a6eb4b0ead08acaf63a0e
parente9401f61c26689c3029090dd4c4d8469c61d598e
[modules] Even if we already have a definition of a class, loading in another
one can give us more lookup results (due to implicit special members). Be sure
to complete the redecl chain for every kind of DeclContext before performing a
lookup into it, rather than only doing so for NamespaceDecls.

llvm-svn: 230558
clang/lib/AST/DeclBase.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/test/Modules/Inputs/merge-decl-context/a.h [new file with mode: 0644]
clang/test/Modules/Inputs/merge-decl-context/b.h [new file with mode: 0644]
clang/test/Modules/Inputs/merge-decl-context/c.h [new file with mode: 0644]
clang/test/Modules/Inputs/merge-decl-context/merge-decl-context.modulemap [new file with mode: 0644]
clang/test/Modules/merge-decl-context.cpp [new file with mode: 0644]