[cfe-commits] r61139 - /cfe/trunk/include/clang/AST/DeclBase.h
Douglas Gregor
dgregor at apple.com
Wed Dec 17 08:32:44 PST 2008
Author: dgregor
Date: Wed Dec 17 10:32:39 2008
New Revision: 61139
URL: http://llvm.org/viewvc/llvm-project?rev=61139&view=rev
Log:
Remove the crufty reverse_decl_iterator
Modified:
cfe/trunk/include/clang/AST/DeclBase.h
Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=61139&r1=61138&r2=61139&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Wed Dec 17 10:32:39 2008
@@ -419,21 +419,11 @@
/// within this context.
typedef std::vector<ScopedDecl*>::const_iterator decl_iterator;
- /// reverse_decl_iterator - Iterates through the declarations stored
- /// within this context in reverse order.
- typedef std::vector<ScopedDecl*>::const_reverse_iterator
- reverse_decl_iterator;
-
/// decls_begin/decls_end - Iterate over the declarations stored in
/// this context.
decl_iterator decls_begin() const { return Decls.begin(); }
decl_iterator decls_end() const { return Decls.end(); }
- /// decls_rbegin/decls_rend - Iterate over the declarations stored
- /// in this context in reverse order.
- reverse_decl_iterator decls_rbegin() const { return Decls.rbegin(); }
- reverse_decl_iterator decls_rend() const { return Decls.rend(); }
-
/// addDecl - Add the declaration D to this scope. Note that
/// declarations are added at the beginning of the declaration
/// chain, so reverseDeclChain() should be called after all
More information about the cfe-commits
mailing list