ClangAST

Wrap a clang cursor. No restrictions on what type of cursor it is. Accept a Visitor. During accept traverse the AST to: - wrap Cursors's in specific classes corresponding to the kind of cursor. - call Visitor's visit(...) with wrapped cursor.

Starts traversing the AST from the root.

Optional functions: void incr(). Called before descending a node. void decr(). Called after ascending a node.

struct ClangAST (
VisitorT
) {
Cursor root;
}

Meta