[clang][ASTImporter] Update lookup table correctly at deduction guides.
authorBalázs Kéri <1.int32@gmail.com>
Mon, 6 Dec 2021 17:16:02 +0000 (18:16 +0100)
committerGabor Marton <gabor.marton@ericsson.com>
Mon, 6 Dec 2021 19:40:16 +0000 (20:40 +0100)
commit341a30a4ba4bdb537916986cbc0bac8b5b31d8f6
tree7102b0e614a60ff11020e0b70e8937998156edd6
parent73ee4e1cbd643028d63200f05199a128609aba5f
[clang][ASTImporter] Update lookup table correctly at deduction guides.

Declaration context of template parameters of a FunctionTemplateDecl
may be different for each one parameter if the template is a
deduction guide. This case is handled correctly after this change.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D114418
clang/include/clang/AST/ASTImporterLookupTable.h
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/ASTImporterLookupTable.cpp
clang/unittests/AST/ASTImporterTest.cpp