Use an iterator type for found_decls_begin/found_decls_end.

llvm-svn: 71721
This commit is contained in:
Anders Carlsson 2009-05-13 21:22:06 +00:00
parent 49d216db15
commit e39935527e
2 changed files with 5 additions and 4 deletions

View 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;

View 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);