diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-09-29 19:44:47 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-09-29 19:44:47 +0000 |
commit | 9036d5e369aae65e3baccdeed74c796e3d367b3d (patch) | |
tree | d7ce206f3d142bed6379d6a3c0b0bbc67b45282c | |
parent | f4526e3fd48248af78b3d59ec36a37bc055b326f (diff) |
Introduce TypedefLoc::getTypedefDecl().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/TypeLoc.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<TypedefType>(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); } |