Added iterators for types.

llvm-svn: 58050
This commit is contained in:
Ted Kremenek 2008-10-23 23:35:43 +00:00
parent 340b5ddcf9
commit f000308467
1 changed files with 12 additions and 0 deletions

View File

@ -455,6 +455,18 @@ public:
// corresponding unsigned integer type.
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
//===--------------------------------------------------------------------===//