[clang][AST] Set correct DeclContext in ASTImporter lookup table for template params.
authorBalázs Kéri <1.int32@gmail.com>
Thu, 17 Jun 2021 07:12:36 +0000 (09:12 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Thu, 17 Jun 2021 09:20:27 +0000 (11:20 +0200)
commit05e95d2dd74973dd5163b7d44828fac61e416452
treeeccbecab55675a09bbe9fb20c2580d046316652b
parentfda8b4714e05c68deee469970cb6f7f7ea8b32b7
[clang][AST] Set correct DeclContext in ASTImporter lookup table for template params.

Template parameters are created in ASTImporter with the translation unit as DeclContext.
The DeclContext is later updated (by the create function of template classes).
ASTImporterLookupTable was not updated after these changes of the DC. The patch
adds update of the DeclContext in ASTImporterLookupTable.

Reviewed By: martong

Differential Revision: https://reviews.llvm.org/D103792
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp