forked from OSchip/llvm-project
Add a comment about DepthFirstIterator's skipchildren behavior
llvm-svn: 236904
This commit is contained in:
parent
09c4424994
commit
c67979bf4d
|
@ -159,8 +159,10 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
// skips all children of the current node and traverses to next node
|
||||
//
|
||||
/// \brief Skips all children of the current node and traverses to next node
|
||||
///
|
||||
/// Note: This function takes care of incrementing the iterator. If you
|
||||
/// always increment and call this function, you risk walking off the end.
|
||||
df_iterator &skipChildren() {
|
||||
VisitStack.pop_back();
|
||||
if (!VisitStack.empty())
|
||||
|
|
Loading…
Reference in New Issue