aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/DeclTemplate.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-18 00:34:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-18 00:34:07 +0000
commitb57a4fe73b8227c0dba651818b8495dfca61e530 (patch)
tree56854fb0f97e67a7dc7ef19ba5fedb56155a29a9 /include/clang/AST/DeclTemplate.h
parent0df134715d75c62422502af0f5610885a5a4f472 (diff)
Move the functionality of ASTContext::getCanonicalDecl(), into a virtual method Decl::getCanonicalDecl().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclTemplate.h')
-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 5d0fe158e0..8601620931 100644
--- a/include/clang/AST/DeclTemplate.h
+++ b/include/clang/AST/DeclTemplate.h
@@ -604,6 +604,8 @@ public:
CommonOrPrev = Prev;
}
+ virtual FunctionTemplateDecl *getCanonicalDecl();
+
/// Create a template function node.
static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
SourceLocation L,
@@ -1027,6 +1029,8 @@ public:
ClassTemplateDecl *getPreviousDeclaration() const {
return PreviousDeclaration;
}
+
+ virtual ClassTemplateDecl *getCanonicalDecl();
/// Create a class template node.
static ClassTemplateDecl *Create(ASTContext &C, DeclContext *DC,