[cfe-commits] PATCH [1/2]: Implementation of Embarcadero expression traits

John McCall rjmccall at apple.com
Mon Feb 21 17:53:45 PST 2011


On Feb 21, 2011, at 5:43 PM, Douglas Gregor wrote:
> On Feb 18, 2011, at 2:53 PM, John Wiegley wrote:
> 
>> --- a/lib/AST/ExprCXX.cpp
>> +++ b/lib/AST/ExprCXX.cpp
>> @@ -377,6 +377,14 @@ Stmt::child_iterator BinaryTypeTraitExpr::child_end() {
>>  return child_iterator();
>> }
>> 
>> +//ExpressionTraitExpr
>> +Stmt::child_iterator ExpressionTraitExpr::child_begin() {
>> +  return child_iterator();
>> +}
>> +Stmt::child_iterator ExpressionTraitExpr::child_end() {
>> +  return child_iterator();
>> +}
> 
> These functions should return child iterators for &QueriedExpression and &QueriedExpression +1, respectively.

Also, you'll need to implement children() instead of child_begin() / child_end(), and implementations this simple should really go in the header.

John.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110221/e0162ff7/attachment.html>


More information about the cfe-commits mailing list