]> granicus.if.org Git - clang/commit
Hide the specializations folding sets of ClassTemplateDecl as an implementation detai...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 20 Jul 2010 13:59:28 +0000 (13:59 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 20 Jul 2010 13:59:28 +0000 (13:59 +0000)
commitcc0b1bc979b650a8a8b34b2032a074fd7724a90d
tree2c33daacbe150bd65d09100ca2f5d388be8157ce
parent405861d4ae824795f506d03cd7578f011cbf5b87
Hide the specializations folding sets of ClassTemplateDecl as an implementation detail (InsertPos
leaks though) and add methods to its interface for adding/finding specializations.

Simplifies its users a bit and we no longer need to replace specializations in the folding set with
their redeclarations. We just return the most recent redeclarations.

As a bonus, it fixes http://llvm.org/PR7670.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108832 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclTemplate.h
lib/AST/DeclTemplate.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/PCH/cxx-templates.h