cpptooling.analyzer.clang.cursor_backtrack

Members

Functions

backtrack
auto backtrack(const(NodeT) node)

Backtrack a cursor until the top cursor is reached.

backtrackScopeRange
auto backtrackScopeRange(const(NodeT) node)

Analyze the scope the declaration/definition reside in by backtracking to the root.

isGlobalOrNamespaceScope
bool isGlobalOrNamespaceScope(const(Cursor) c)

Determine if a cursor is in the global or namespace scope.

isLocalScope
bool isLocalScope(CXCursorKind kind)

Determine if a kind creates a local scope.

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