From ed452a0629369711982e3c59a21e13bb4f1fc5f0 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 19 Oct 2013 21:06:31 +0000 Subject: [PATCH] Add a missing getMostRecentDecl to ClassTemplateDecl. llvm-svn: 193040 --- clang/include/clang/AST/DeclTemplate.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 26f6891b5b58..d2984fe42acc 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -1900,6 +1900,14 @@ public: RedeclarableTemplateDecl::getPreviousDecl()); } + ClassTemplateDecl *getMostRecentDecl() { + return cast( + RedeclarableTemplateDecl::getMostRecentDecl()); + } + const ClassTemplateDecl *getMostRecentDecl() const { + return const_cast(this)->getMostRecentDecl(); + } + ClassTemplateDecl *getInstantiatedFromMemberTemplate() { return cast_or_null( RedeclarableTemplateDecl::getInstantiatedFromMemberTemplate());