[clang][AST] Set correct DeclContext in ASTImporter lookup table for ParmVarDecl.
authorBalázs Kéri <1.int32@gmail.com>
Fri, 4 Jun 2021 10:21:20 +0000 (12:21 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Fri, 4 Jun 2021 12:24:44 +0000 (14:24 +0200)
commitceb62388f2d8bd8deed447ebfed77ac7d9be293d
treeae9e980f184bc7f4f4a0f957558692e9a7143b90
parente42ee2d50963eb12e4d2dc0a20f36b1cb2af8543
[clang][AST] Set correct DeclContext in ASTImporter lookup table for ParmVarDecl.

ParmVarDecl is created with translation unit as the parent DeclContext
and later moved to the correct DeclContext. ASTImporterLookupTable
should be updated at this move.

Reviewed By: martong

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