From: Argyrios Kyrtzidis Date: Tue, 29 Sep 2009 19:44:47 +0000 (+0000) Subject: Introduce TypedefLoc::getTypedefDecl(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9036d5e369aae65e3baccdeed74c796e3d367b3d;p=clang Introduce TypedefLoc::getTypedefDecl(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83096 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }