[cfe-commits] r108810 - /cfe/trunk/include/clang/AST/Expr.h
Zhongxing Xu
xuzhongxing at gmail.com
Mon Jul 19 23:15:27 PDT 2010
Author: zhongxingxu
Date: Tue Jul 20 01:15:27 2010
New Revision: 108810
URL: http://llvm.org/viewvc/llvm-project?rev=108810&view=rev
Log:
Add const iterator to InitListExpr.
Modified:
cfe/trunk/include/clang/AST/Expr.h
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=108810&r1=108809&r2=108810&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Tue Jul 20 01:15:27 2010
@@ -2904,12 +2904,18 @@
virtual child_iterator child_end();
typedef InitExprsTy::iterator iterator;
+ typedef InitExprsTy::const_iterator const_iterator;
typedef InitExprsTy::reverse_iterator reverse_iterator;
+ typedef InitExprsTy::const_reverse_iterator const_reverse_iterator;
iterator begin() { return InitExprs.begin(); }
+ const_iterator begin() const { return InitExprs.begin(); }
iterator end() { return InitExprs.end(); }
+ const_iterator end() const { return InitExprs.end(); }
reverse_iterator rbegin() { return InitExprs.rbegin(); }
+ const_reverse_iterator rbegin() const { return InitExprs.rbegin(); }
reverse_iterator rend() { return InitExprs.rend(); }
+ const_reverse_iterator rend() const { return InitExprs.rend(); }
};
/// @brief Represents a C99 designated initializer expression.
More information about the cfe-commits
mailing list