struct CreateInvocationOptions

Declaration

struct CreateInvocationOptions { /* full declaration omitted */ };

Description

Optional inputs to createInvocation.

Declared at: clang/include/clang/Frontend/Utils.h:193

Member Variables

public IntrusiveRefCntPtr<clang::DiagnosticsEngine> Diags = nullptr
Receives diagnostics encountered while parsing command-line flags. If not provided, these are printed to stderr.
public IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS = nullptr
Used e.g. to probe for system headers locations. If not provided, the real filesystem is used. FIXME: the driver does perform some non-virtualized IO.
public bool RecoverOnError = false
Whether to attempt to produce a non-null (possibly incorrect) invocation if any errors were encountered. By default, always return null on errors.
public bool ProbePrecompiled = false
Allow the driver to probe the filesystem for PCH files. This is used to replace -include with -include-pch in the cc1 args. FIXME: ProbePrecompiled=true is a poor, historical default. It misbehaves if the PCH file is from GCC, has the wrong version, etc.
public std::vector<std::string>* CC1Args = nullptr
If set, the target is populated with the cc1 args produced by the driver. This may be populated even if createInvocation returns nullptr.