]> granicus.if.org Git - clang/commit
[ASTImporter] Fix redecl failures of FunctionTemplateSpec
authorGabor Marton <martongabesz@gmail.com>
Tue, 19 Mar 2019 14:04:50 +0000 (14:04 +0000)
committerGabor Marton <martongabesz@gmail.com>
Tue, 19 Mar 2019 14:04:50 +0000 (14:04 +0000)
commitf6f53c0d9bc5c14a4cc1ebd9dfb9ae01fc570703
treef817f7a7a3def4c9925d95abb925bfbf29c876b8
parente99393cc7ff622c1e730bfb176a579dd3cd3f5af
[ASTImporter] Fix redecl failures of FunctionTemplateSpec

Summary:
Redecl chains of function template specializations are not handled well
currently. We want to handle them similarly to functions, i.e. try to
keep the structure of the original AST as much as possible. The aim is
to not squash a prototype with a definition, rather we create both and
put them in a redecl chain.

Reviewers: a_sidorin, shafik, a.sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356455 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterTest.cpp