diff options
-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); } |