[cfe-commits] r83096 - /cfe/trunk/include/clang/AST/TypeLoc.h

Argiris Kirtzidis akyrtzi at gmail.com
Tue Sep 29 12:44:47 PDT 2009


Author: akirtzidis
Date: Tue Sep 29 14:44:47 2009
New Revision: 83096

URL: http://llvm.org/viewvc/llvm-project?rev=83096&view=rev
Log:
Introduce TypedefLoc::getTypedefDecl().

Modified:
    cfe/trunk/include/clang/AST/TypeLoc.h

Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=83096&r1=83095&r2=83096&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Tue Sep 29 14:44:47 2009
@@ -139,6 +139,10 @@
     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); }





More information about the cfe-commits mailing list