]> granicus.if.org Git - clang/commitdiff
Use an iterator type for found_decls_begin/found_decls_end.
authorAnders Carlsson <andersca@mac.com>
Wed, 13 May 2009 21:22:06 +0000 (21:22 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 13 May 2009 21:22:06 +0000 (21:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71721 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaInherit.cpp
lib/Sema/SemaInherit.h

index 1f3433e16698cc08a47936118ebb0b7c9f73d989..f5c7a7f2d0e997545e8eac490341b2c90d3c59f9 100644 (file)
@@ -41,13 +41,13 @@ void BasePaths::ComputeDeclsFound() {
   std::copy(Decls.begin(), Decls.end(), DeclsFound);
 }
 
-NamedDecl **BasePaths::found_decls_begin() {
+BasePaths::decl_iterator BasePaths::found_decls_begin() {
   if (NumDeclsFound == 0)
     ComputeDeclsFound();
   return DeclsFound;
 }
 
-NamedDecl **BasePaths::found_decls_end() {
+BasePaths::decl_iterator BasePaths::found_decls_end() {
   if (NumDeclsFound == 0)
     ComputeDeclsFound();
   return DeclsFound + NumDeclsFound;
index 20c8ae5e039606c206b43b322f5f1076575cee69..a71ae8dbaba010241102ffccbf0b3d6596d9e19c 100644 (file)
@@ -144,6 +144,7 @@ namespace clang {
 
   public:
     typedef std::list<BasePath>::const_iterator paths_iterator;
+    typedef NamedDecl **decl_iterator;
     
     /// BasePaths - Construct a new BasePaths structure to record the
     /// paths for a derived-to-base search.
@@ -163,8 +164,8 @@ namespace clang {
     BasePath&       front()       { return Paths.front(); }
     const BasePath& front() const { return Paths.front(); }
 
-    NamedDecl **found_decls_begin();
-    NamedDecl **found_decls_end();
+    decl_iterator found_decls_begin();
+    decl_iterator found_decls_end();
 
     bool isAmbiguous(QualType BaseType);