[clang][ASTImporter] Handle UsingType in friend declarations.
authorBalázs Kéri <1.int32@gmail.com>
Mon, 30 Jan 2023 08:39:55 +0000 (09:39 +0100)
committerBalázs Kéri <1.int32@gmail.com>
Mon, 30 Jan 2023 09:06:11 +0000 (10:06 +0100)
commite31ee6417c33a6e2f0e8440b1a86d5365279ad68
treec0183c58441180560d097263d40f9cf1750c48c5
parent5375b638be874b5438e98bd8a435e198af3ef2d0
[clang][ASTImporter] Handle UsingType in friend declarations.

ASTImporterLookupTable did not handle correctly friend declarations
where the friend type is an UsingType (type of a declaration that
comes from an using-declaration). The problem is fixed by handling
it in the same way as a friend with TypedefType.

Reviewed By: steakhal

Differential Revision: https://reviews.llvm.org/D142607
clang/lib/AST/ASTImporterLookupTable.cpp
clang/unittests/AST/ASTImporterTest.cpp