cpptooling.analyzer.clang.include_visitor

Members

Functions

extractIncludes
FileName[] extractIncludes(Cursor root, int depth = 2)

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

hasInclude
Nullable!FileName hasInclude(Cursor root, int depth = 2)

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

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

This file contains a visitor to extract the include directives.

License

MPL-2