]> granicus.if.org Git - clang/commit
[ASTImporter] Fix redecl failures of ClassTemplateSpec
authorGabor Marton <martongabesz@gmail.com>
Tue, 19 Mar 2019 13:34:10 +0000 (13:34 +0000)
committerGabor Marton <martongabesz@gmail.com>
Tue, 19 Mar 2019 13:34:10 +0000 (13:34 +0000)
commite99393cc7ff622c1e730bfb176a579dd3cd3f5af
tree8917f36cd019ac26ecf3c92bf1bef14b58ee6ca3
parent03da18856a7340f59d3f9c33bab36bf44665f787
[ASTImporter] Fix redecl failures of ClassTemplateSpec

Summary:
Redecl chains of class 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, jdoerfert, cfe-commits

Tags: #clang

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

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