[cfe-dev] clang::Stmt, what's a child?

John McCall rjmccall at apple.com
Wed Feb 23 23:26:45 PST 2011


On Feb 23, 2011, at 11:02 PM, Eric Niebler wrote:
> With my change, the AST for *both* will be stored under a new node type.
> So, what should child_begin and child_end iterate over for this node
> type? (My hunch is that only the rewritten node is really a child.)

Yes, I think only the nodes that will actually be executed should be
"children" in that sense;  thus the rewritten tree and any tree whose
values will be bound to OpaqueValueExprs, but not the OVEs
themselves.

John.



More information about the cfe-dev mailing list