[ASTImporter] Fix lexical DC for templated decls; support VarTemplatePartialSpecDecl
authorAleksei Sidorin <a.sidorin@samsung.com>
Wed, 14 Feb 2018 11:18:00 +0000 (11:18 +0000)
committerAleksei Sidorin <a.sidorin@samsung.com>
Wed, 14 Feb 2018 11:18:00 +0000 (11:18 +0000)
commit4c05f1427134a524e1c84ccd57f59a96ffdffe59
treea68dd867c600c4f830b320a19f0c78b9668f80ac
parent918f60056a57aa2aa1322ff3a6207b79e40a56e3
[ASTImporter] Fix lexical DC for templated decls; support VarTemplatePartialSpecDecl

Also minor refactoring in related functions was done.

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

llvm-svn: 325116
clang/lib/AST/ASTImporter.cpp
clang/test/ASTMerge/var-cpp/Inputs/var1.cpp [new file with mode: 0644]
clang/test/ASTMerge/var-cpp/test.cpp [new file with mode: 0644]
clang/unittests/AST/ASTImporterTest.cpp