Add const iterator to InitListExpr.

llvm-svn: 108810
This commit is contained in:
Zhongxing Xu 2010-07-20 06:15:27 +00:00
parent c57d34bc35
commit 09a95d7448
1 changed files with 6 additions and 0 deletions

View File

@ -2904,12 +2904,18 @@ public:
virtual child_iterator child_end(); virtual child_iterator child_end();
typedef InitExprsTy::iterator iterator; typedef InitExprsTy::iterator iterator;
typedef InitExprsTy::const_iterator const_iterator;
typedef InitExprsTy::reverse_iterator reverse_iterator; typedef InitExprsTy::reverse_iterator reverse_iterator;
typedef InitExprsTy::const_reverse_iterator const_reverse_iterator;
iterator begin() { return InitExprs.begin(); } iterator begin() { return InitExprs.begin(); }
const_iterator begin() const { return InitExprs.begin(); }
iterator end() { return InitExprs.end(); } iterator end() { return InitExprs.end(); }
const_iterator end() const { return InitExprs.end(); }
reverse_iterator rbegin() { return InitExprs.rbegin(); } reverse_iterator rbegin() { return InitExprs.rbegin(); }
const_reverse_iterator rbegin() const { return InitExprs.rbegin(); }
reverse_iterator rend() { return InitExprs.rend(); } reverse_iterator rend() { return InitExprs.rend(); }
const_reverse_iterator rend() const { return InitExprs.rend(); }
}; };
/// @brief Represents a C99 designated initializer expression. /// @brief Represents a C99 designated initializer expression.