ΒΆunsigned int clang_visitChildren(
CXCursor parent,
CXCursorVisitor visitor,
CXClientData client_data)
unsigned int clang_visitChildren(
CXCursor parent,
CXCursorVisitor visitor,
CXClientData client_data)
Description
Visit the children of a particular cursor. This function visits all the direct children of the given cursor, invoking the given \p visitor function with the cursors of each visited child. The traversal may be recursive, if the visitor returns\c CXChildVisit_Recurse. The traversal may also be ended prematurely, if the visitor returns \c CXChildVisit_Break.
Declared at: clang/include/clang-c/Index.h:4304
Parameters
- CXCursor parent
- the cursor whose child may be visited. All kinds of cursors can be visited, including invalid cursors (which, by definition, have no children).
- CXCursorVisitor visitor
- the visitor function that will be invoked for each child of \p parent.
- CXClientData client_data
- pointer data supplied by the client, which will be passed to the visitor each time it is invoked.
Returns
a non-zero value if the traversal was terminated prematurely by the visitor returning \c CXChildVisit_Break.