libclang_ast.include_visitor

Members

Functions

extractIncludes
Path[] extractIncludes(Cursor root, int depth)

Extract the filenames from all #include preprocessor macros that are found in the AST.

hasInclude
Nullable!Path hasInclude(Cursor root, int depth)

Analyze the AST (root) to see if any of the #include fulfill the user supplied matcher.

Meta

License

MPL-2

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/.

This file contains a visitor to extract the include directives.