diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-23 23:35:43 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-23 23:35:43 +0000 |
commit | e22d911dcff7a9c18b583817b7319c07600fd3ee (patch) | |
tree | e823d35f96305bcdb3a3aee061923db83e18d97e | |
parent | c6cb77f1e5c4455edfa9c96bf5a8ef463d4c8d54 (diff) |
Added iterators for types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58050 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/ASTContext.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 6ca92df0e5..b393e52c9c 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -456,6 +456,18 @@ public: 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 //===--------------------------------------------------------------------===// |