[ASTImporter] Import described template (if any) of function.
authorBalazs Keri <1.int32@gmail.com>
Tue, 17 Jul 2018 09:52:41 +0000 (09:52 +0000)
committerBalazs Keri <1.int32@gmail.com>
Tue, 17 Jul 2018 09:52:41 +0000 (09:52 +0000)
commita35798db9155e5b794e76e860e59685dbd16476c
treefec8132c27e9d381d235945d747abd8d824c5867
parent3b9e342ae14fd4a041769280640c78e4bb597b06
[ASTImporter] Import described template (if any) of function.

Summary:
When a function is imported, check if it has a described template.
The name lookup is corrected to find the templated entity in this case.
The described template of the function is imported too.

Reviewers: a.sidorin, a_sidorin

Reviewed By: a_sidorin

Subscribers: a_sidorin, martong, cfe-commits

Differential Revision: https://reviews.llvm.org/D49235

llvm-svn: 337260
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp