]> granicus.if.org Git - clang/commitdiff
Add walking bases in reverse order.
authorMike Stump <mrs@apple.com>
Mon, 10 Aug 2009 18:21:22 +0000 (18:21 +0000)
committerMike Stump <mrs@apple.com>
Mon, 10 Aug 2009 18:21:22 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78578 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h

index 9d96f80cfa17b612c0b77218f34f031e109dd99c..8b601cb810a516fb34318f51793b0ddd4fc0555d 100644 (file)
@@ -424,6 +424,18 @@ public:
   base_class_const_iterator bases_begin() const { return Bases; }
   base_class_iterator       bases_end()         { return Bases + NumBases; }
   base_class_const_iterator bases_end()   const { return Bases + NumBases; }
+  reverse_base_class_iterator       bases_rbegin() {
+    return reverse_base_class_iterator(bases_end());
+  }
+  reverse_base_class_const_iterator bases_rbegin() const {
+    return reverse_base_class_const_iterator(bases_end());
+  }
+  reverse_base_class_iterator bases_rend() {
+    return reverse_base_class_iterator(bases_begin());
+  }
+  reverse_base_class_const_iterator bases_rend() const {
+    return reverse_base_class_const_iterator(bases_begin());
+  }
   
   /// getNumVBases - Retrieves the number of virtual base classes of this
   /// class.