diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-13 21:22:06 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-13 21:22:06 +0000 |
commit | e39935527edb313f22a9c6b98b0aa89c3fa22d3e (patch) | |
tree | 0756127099249e9bc5d4f9d4220c115aa7c4b00b | |
parent | 49d216db155b50a266ea945a240c019f7cefc15e (diff) | |
download | bcm5719-llvm-e39935527edb313f22a9c6b98b0aa89c3fa22d3e.tar.gz bcm5719-llvm-e39935527edb313f22a9c6b98b0aa89c3fa22d3e.zip |
Use an iterator type for found_decls_begin/found_decls_end.
llvm-svn: 71721
-rw-r--r-- | clang/lib/Sema/SemaInherit.cpp | 4 | ||||
-rw-r--r-- | clang/lib/Sema/SemaInherit.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaInherit.cpp b/clang/lib/Sema/SemaInherit.cpp index 1f3433e1669..f5c7a7f2d0e 100644 --- a/clang/lib/Sema/SemaInherit.cpp +++ b/clang/lib/Sema/SemaInherit.cpp @@ -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; diff --git a/clang/lib/Sema/SemaInherit.h b/clang/lib/Sema/SemaInherit.h index 20c8ae5e039..a71ae8dbaba 100644 --- a/clang/lib/Sema/SemaInherit.h +++ b/clang/lib/Sema/SemaInherit.h @@ -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); |