Add a comment about DepthFirstIterator's skipchildren behavior

llvm-svn: 236904
This commit is contained in:
Daniel Berlin 2015-05-08 21:17:24 +00:00
parent 09c4424994
commit c67979bf4d
1 changed files with 4 additions and 2 deletions

View File

@ -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())