r193040 - Add a missing getMostRecentDecl to ClassTemplateDecl.

Rafael Espindola rafael.espindola at gmail.com
Sat Oct 19 14:06:31 PDT 2013


Author: rafael
Date: Sat Oct 19 16:06:31 2013
New Revision: 193040

URL: http://llvm.org/viewvc/llvm-project?rev=193040&view=rev
Log:
Add a missing getMostRecentDecl to ClassTemplateDecl.

Modified:
    cfe/trunk/include/clang/AST/DeclTemplate.h

Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=193040&r1=193039&r2=193040&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Sat Oct 19 16:06:31 2013
@@ -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());





More information about the cfe-commits mailing list