aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/Decl.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/Decl.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/Decl.h')
-rw-r--r--include/clang/AST/Decl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index a5c3ea0680..a35638f315 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -437,7 +437,7 @@ public:
return First->PreviousDeclaration.getPointer();
}
- virtual Decl *getPrimaryDecl() const;
+ virtual VarDecl *getCanonicalDecl();
/// \brief Iterates through all the redeclarations of the same var decl.
class redecl_iterator {
@@ -908,7 +908,7 @@ public:
void setPreviousDeclaration(FunctionDecl * PrevDecl);
- virtual Decl *getPrimaryDecl() const;
+ virtual FunctionDecl *getCanonicalDecl();
/// \brief Iterates through all the redeclarations of the same function decl.
class redecl_iterator {
@@ -1316,6 +1316,8 @@ public:
void setRBraceLoc(SourceLocation L) { RBraceLoc = L; }
virtual SourceRange getSourceRange() const;
+
+ virtual TagDecl* getCanonicalDecl();
/// isDefinition - Return true if this decl has its body specified.
bool isDefinition() const {