From 9036d5e369aae65e3baccdeed74c796e3d367b3d Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 29 Sep 2009 19:44:47 +0000 Subject: [PATCH] Introduce TypedefLoc::getTypedefDecl(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83096 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/TypeLoc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h index 5e8b0a0f43..dfa69a979e 100644 --- a/include/clang/AST/TypeLoc.h +++ b/include/clang/AST/TypeLoc.h @@ -139,6 +139,10 @@ public: return SourceRange(getNameLoc(), getNameLoc()); } + TypedefDecl *getTypedefDecl() const { + return cast(Ty)->getDecl(); + } + /// \brief Returns the size of the type source info data block that is /// specific to this type. unsigned getLocalDataSize() const { return sizeof(Info); } -- 2.40.0