[cfe-commits] r39520 - /cfe/cfe/trunk/include/clang/AST/Stmt.h

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:45:14 PDT 2007


Author: clattner
Date: Wed Jul 11 11:45:14 2007
New Revision: 39520

URL: http://llvm.org/viewvc/llvm-project?rev=39520&view=rev
Log:
add accessors.

Modified:
    cfe/cfe/trunk/include/clang/AST/Stmt.h

Modified: cfe/cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/Stmt.h?rev=39520&r1=39519&r2=39520&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/cfe/trunk/include/clang/AST/Stmt.h Wed Jul 11 11:45:14 2007
@@ -109,6 +109,10 @@
   typedef SmallVector<Stmt*, 16>::iterator body_iterator;
   body_iterator body_begin() { return Body.begin(); }
   body_iterator body_end() { return Body.end(); }
+
+  typedef SmallVector<Stmt*, 16>::const_iterator const_body_iterator;
+  const_body_iterator body_begin() const { return Body.begin(); }
+  const_body_iterator body_end() const { return Body.end(); }
   
   void push_back(Stmt *S) { Body.push_back(S); }
     





More information about the cfe-commits mailing list