]> granicus.if.org Git - clang/commit
Refactor redeclarable template declarations
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 29 Jul 2010 16:11:51 +0000 (16:11 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 29 Jul 2010 16:11:51 +0000 (16:11 +0000)
commit9eabebafc165a67812eacc184806e7bf34c5f0a5
tree34803307f79988a873012e4e0472112514097513
parent8f70ddb5576f338d409caa1404cebd40d6a05951
Refactor redeclarable template declarations

This patch refactors much of the common code in ClassTemplateDecl and
FunctionTemplateDecl into a common base class RedeclarableTemplateDecl
together with support functions in a template class RedeclarableTemplate.

The patch also includes similar refactoring for these classes' PCH
reader and writer implementations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109754 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclTemplate.h
include/clang/Basic/DeclNodes.td
lib/AST/DeclTemplate.cpp
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHWriterDecl.cpp