aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers2000@yahoo.com>2010-07-06 23:51:34 +0000
committerCraig Silverstein <csilvers2000@yahoo.com>2010-07-06 23:51:34 +0000
commitdd5faf05dfe0163bdde939937d4fb0270086178a (patch)
treef776c579c2d4f1882da87a1050133cfec10506e8
parent925198d693a0cf874452adcc2a8de1cb3d86992e (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107737 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/DeclTemplate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/DeclTemplate.h b/include/clang/AST/DeclTemplate.h
index 10230d2223..16646b0077 100644
--- a/include/clang/AST/DeclTemplate.h
+++ b/include/clang/AST/DeclTemplate.h
@@ -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,