cpptooling.analyzer.clang.ast.tree

Members

Functions

accept
void accept(ref const(Cursor) cursor, ref VisitorT visitor)

Apply the visitor to the children of the cursor.

dispatch
void dispatch(ref const(Cursor) cursor, VisitorT visitor)

Static wrapping of the cursor followed by a passing it to the visitor.

Structs

ClangAST
struct ClangAST(VisitorT)

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.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

License

MPL-2