[cfe-commits] r71721 - in /cfe/trunk/lib/Sema: SemaInherit.cpp SemaInherit.h

Anders Carlsson andersca at mac.com
Wed May 13 14:22:17 PDT 2009


Author: andersca
Date: Wed May 13 16:22:06 2009
New Revision: 71721

URL: http://llvm.org/viewvc/llvm-project?rev=71721&view=rev
Log:
Use an iterator type for found_decls_begin/found_decls_end.

Modified:
    cfe/trunk/lib/Sema/SemaInherit.cpp
    cfe/trunk/lib/Sema/SemaInherit.h

Modified: cfe/trunk/lib/Sema/SemaInherit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInherit.cpp?rev=71721&r1=71720&r2=71721&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaInherit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInherit.cpp Wed May 13 16:22:06 2009
@@ -41,13 +41,13 @@
   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;

Modified: cfe/trunk/lib/Sema/SemaInherit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInherit.h?rev=71721&r1=71720&r2=71721&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaInherit.h (original)
+++ cfe/trunk/lib/Sema/SemaInherit.h Wed May 13 16:22:06 2009
@@ -144,6 +144,7 @@
 
   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 @@
     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);
 





More information about the cfe-commits mailing list