diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index f98f5881173c..fde91a5e8ad9 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/include/clang/AST/Stmt.h @@ -109,6 +109,10 @@ public: typedef SmallVector::iterator body_iterator; body_iterator body_begin() { return Body.begin(); } body_iterator body_end() { return Body.end(); } + + typedef SmallVector::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); }