[cfe-commits] r39276 - /cfe/cfe/trunk/include/clang/Parse/Scope.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:42:21 PDT 2007
Author: sabre
Date: Wed Jul 11 11:42:21 2007
New Revision: 39276
URL: http://llvm.org/viewvc/llvm-project?rev=39276&view=rev
Log:
clean up scope iteration support
Modified:
cfe/cfe/trunk/include/clang/Parse/Scope.h
Modified: cfe/cfe/trunk/include/clang/Parse/Scope.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Parse/Scope.h?rev=39276&r1=39275&r2=39276&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/Scope.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/Scope.h Wed Jul 11 11:42:21 2007
@@ -100,14 +100,10 @@
}
- typedef SmallVector<Action::DeclTy*, 32>::const_iterator decl_iterator;
- typedef SmallVector<Action::DeclTy*, 32>::const_iterator decl_const_iterator;
+ typedef SmallSet<Action::DeclTy*, 32>::iterator decl_iterator;
- decl_iterator decl_begin() { return DeclsInScope.begin(); }
- decl_iterator decl_end() { return DeclsInScope.end(); }
-
- decl_const_iterator decl_begin() const { return DeclsInScope.begin(); }
- decl_const_iterator decl_end() const { return DeclsInScope.end(); }
+ decl_iterator decl_begin() const { return DeclsInScope.begin(); }
+ decl_iterator decl_end() const { return DeclsInScope.end(); }
void AddDecl(Action::DeclTy *D) {
DeclsInScope.insert(D);
More information about the cfe-commits
mailing list