r220558 - Add arguments() to CXXConstructExpr so the same interface as with CallExpr can be used.
Benjamin Kramer
benny.kra at googlemail.com
Fri Oct 24 06:29:07 PDT 2014
Author: d0k
Date: Fri Oct 24 08:29:07 2014
New Revision: 220558
URL: http://llvm.org/viewvc/llvm-project?rev=220558&view=rev
Log:
Add arguments() to CXXConstructExpr so the same interface as with CallExpr can be used.
Modified:
cfe/trunk/include/clang/AST/ExprCXX.h
Modified: cfe/trunk/include/clang/AST/ExprCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprCXX.h?rev=220558&r1=220557&r2=220558&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExprCXX.h (original)
+++ cfe/trunk/include/clang/AST/ExprCXX.h Fri Oct 24 08:29:07 2014
@@ -1165,6 +1165,13 @@ public:
typedef ExprIterator arg_iterator;
typedef ConstExprIterator const_arg_iterator;
+ typedef llvm::iterator_range<arg_iterator> arg_range;
+ typedef llvm::iterator_range<const_arg_iterator> arg_const_range;
+
+ arg_range arguments() { return arg_range(arg_begin(), arg_end()); }
+ arg_const_range arguments() const {
+ return arg_const_range(arg_begin(), arg_end());
+ }
arg_iterator arg_begin() { return Args; }
arg_iterator arg_end() { return Args + NumArgs; }
More information about the cfe-commits
mailing list