return const_cast<FunctionTemplateDecl*>(this)->getMostRecentDecl();
}
- FunctionTemplateDecl *getInstantiatedFromMemberTemplate() {
+ FunctionTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<FunctionTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
return const_cast<ClassTemplateDecl*>(this)->getMostRecentDecl();
}
- ClassTemplateDecl *getInstantiatedFromMemberTemplate() {
+ ClassTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<ClassTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
this)->getPreviousDecl());
}
- TypeAliasTemplateDecl *getInstantiatedFromMemberTemplate() {
+ TypeAliasTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<TypeAliasTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}
return const_cast<VarTemplateDecl *>(this)->getMostRecentDecl();
}
- VarTemplateDecl *getInstantiatedFromMemberTemplate() {
+ VarTemplateDecl *getInstantiatedFromMemberTemplate() const {
return cast_or_null<VarTemplateDecl>(
RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());
}