Add a const version of a method, to be consistent with other methods

of the same type.  I think this was just an oversight before.

Reviewed by chandlerc.  Submitted as an "obvious" fix.

llvm-svn: 107737
This commit is contained in:
Craig Silverstein 2010-07-06 23:51:34 +00:00
parent 1308bb2791
commit 43adffd1d4
1 changed files with 4 additions and 0 deletions

View File

@ -1421,6 +1421,10 @@ public:
virtual ClassTemplateDecl *getCanonicalDecl();
const ClassTemplateDecl *getCanonicalDecl() const {
return const_cast<ClassTemplateDecl*>(this)->getCanonicalDecl();
}
/// Create a class template node.
static ClassTemplateDecl *Create(ASTContext &C, DeclContext *DC,
SourceLocation L,