Displaying 2 results from an estimated 2 matches for "skipchilds".
2009 Jun 26
3
[LLVMdev] Patch for llvm::DepthFirstIterator.h and llvm::PostOrderIterator.h
...he first child. This is now retrieved in exactly that
moment it's needed. Until now it was retrieved too early, thus you
actually couldn't change the childs of a just processed node. I can't
think of an insane working example, which would break due to this change.
4. I added a public skipChilds member function to df_iterator which acts
similiar to operator++. However it skips all childs of the currently
processed node and returns *this. You can use it like in
for (i = df_begin(), e = df_end(); i!=e;)
{
foo() ? i.skipChilds() : ++i;
}
Best
Olaf Krzikalla
-------------- next part ----...
2009 Jun 27
0
[LLVMdev] Patch for llvm::DepthFirstIterator.h and llvm::PostOrderIterator.h
...End is when stack
is empty */ }
Should the comment here be updated to say that the End
is reached when the stack is empty and when CurrentTopNode
is null?
> + inline void toNext()
> + {
LLVM style puts the open brace on the same line as the function name.
> + inline _Self& skipChilds() { // skips all childs of the current
node and traverses to next node
The plural of "child" is "children"; please rename this function
accordingly. Also, please format this line and a few others so
that they don't exceed 80 columns.
Thanks,
Dan
On Jun 26, 2009, at 5...