Add a missing getMostRecentDecl to ClassTemplateDecl.

llvm-svn: 193040
This commit is contained in:
Rafael Espindola 2013-10-19 21:06:31 +00:00
parent 7b56f6c3c2
commit ed452a0629
1 changed files with 8 additions and 0 deletions

View File

@ -1900,6 +1900,14 @@ public:
RedeclarableTemplateDecl::getPreviousDecl());
}
ClassTemplateDecl *getMostRecentDecl() {
return cast<ClassTemplateDecl>(
RedeclarableTemplateDecl::getMostRecentDecl());
}
const ClassTemplateDecl *getMostRecentDecl() const {
return const_cast<ClassTemplateDecl*>(this)->getMostRecentDecl();
}
ClassTemplateDecl *getInstantiatedFromMemberTemplate() {
return cast_or_null<ClassTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());