ClangContext

Convenient context of items needed to practically create a clang AST.

"Creating a clang AST" means calling makeTranslationUnit.

Assumes that the scope of a ClangContext is the same as that stated for a clang Index. Namely that those translation units that are created are the same as those that would be linked together into an executable or library.

Items are: - An index that all translation units use as input. - A VFS providing access to the files that the translation unites are derived from.

Constructors

this
this()
Undocumented in source.
this
this(Flag!"useInternalHeaders" useInternalHeaders, Flag!"prependParamSyntaxOnly" prependParamSyntaxOnly)

Create an instance.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

makeTranslationUnit
auto makeTranslationUnit(string sourceFilename, string[] commandLineArgs, uint options)

Create a translation unit from the context.

Variables

vfs
BlobVfs vfs;

Access to the virtual filesystem used when instantiating translation units.

Meta