summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-23 23:35:43 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-23 23:35:43 +0000
commitf00030846796534a36ad54d91b96734b057051c6 (patch)
tree05966fefa6ab2dda8b0392327d58df2292149ff8 /clang
parent340b5ddcf9c58a0790ef3065cf09c163aad846ba (diff)
downloadbcm5719-llvm-f00030846796534a36ad54d91b96734b057051c6.tar.gz
bcm5719-llvm-f00030846796534a36ad54d91b96734b057051c6.zip
Added iterators for types.
llvm-svn: 58050
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/ASTContext.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h
index 6ca92df0e59..b393e52c9c0 100644
--- a/clang/include/clang/AST/ASTContext.h
+++ b/clang/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
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud