[cfe-commits] r58050 - /cfe/trunk/include/clang/AST/ASTContext.h
Ted Kremenek
kremenek at apple.com
Thu Oct 23 16:35:43 PDT 2008
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
//===--------------------------------------------------------------------===//
More information about the cfe-commits
mailing list