Author: kremenek
Date: Thu Oct 23 18:35:43 2008
New Revision: 58050

URL: http://llvm.org/viewvc/llvm-project?rev=58050&view=rev
Log:
Added iterators for types.

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

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

==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Thu Oct 23 18:35:43 2008
@@ -456,6 +456,18 @@
   QualType getCorrespondingUnsignedType(QualType T);
 
   
//===--------------------------------------------------------------------===//
+  //                    Type Iterators.
+  
//===--------------------------------------------------------------------===//
+  
+  typedef std::vector<Type*>::iterator       type_iterator;
+  typedef std::vector<Type*>::const_iterator const_type_iterator;
+  
+  type_iterator types_begin() { return Types.begin(); }
+  type_iterator types_end() { return Types.end(); }
+  const_type_iterator types_begin() const { return Types.begin(); }
+  const_type_iterator types_end() const { return Types.end(); }  
+  
+  
//===--------------------------------------------------------------------===//
   //                    Serialization
   
//===--------------------------------------------------------------------===//
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to