[modules] When instantiating the contents of an imported CXXRecordDecl, we can
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 11 Aug 2015 22:00:24 +0000 (22:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 11 Aug 2015 22:00:24 +0000 (22:00 +0000)
commit9c9173dcc80da2f45bd220bf32256266e07f4fa0
treead6a6806ceda2934fb231e205b6d3d75cb604699
parentc6f046893779316739e356180708781a412c5ce0
[modules] When instantiating the contents of an imported CXXRecordDecl, we can
emit lexical contents for a declaration for another module. Track which module
those contents came from, and ensure that we only grab the lexical contents
from a single such instantiation.

llvm-svn: 244682
clang/include/clang/Serialization/ASTReader.h
clang/lib/Serialization/ASTReader.cpp
clang/test/Modules/Inputs/templates-right.h
clang/test/Modules/Inputs/templates-top.h
clang/test/Modules/templates.mm