If two sibling modules declare the same entity, and we indirectly pull a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 19 May 2014 20:59:20 +0000 (20:59 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 19 May 2014 20:59:20 +0000 (20:59 +0000)
commit851072efb735dcd66d1fbfaa434c2c9d7708e29a
treecfc7e71519d6586be724be73cee0593f7790fb6a
parentcb172b104a6ae03001dfc5a2971efc49cef083ab
If two sibling modules declare the same entity, and we indirectly pull a
declaration of that entity in from one of those modules, keep track of the fact
that we've not completed the redeclaration chain yet so that we can pull the
remaining declarations in from the other module if they're needed.

llvm-svn: 209161
clang/include/clang/AST/DeclCXX.h
clang/include/clang/AST/ExternalASTSource.h
clang/include/clang/AST/Redeclarable.h
clang/include/clang/Serialization/ASTReader.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/test/Modules/Inputs/cxx-templates-common.h
clang/test/Modules/Inputs/module.map
clang/test/Modules/Inputs/redecl-add-after-load-decls.h [new file with mode: 0644]
clang/test/Modules/redecl-add-after-load.cpp