ΒΆvoid AttachHeaderIncludeGen(
    clang::Preprocessor& PP,
    const clang::DependencyOutputOptions& DepOpts,
    bool ShowAllHeaders = false,
    llvm::StringRef OutputPath = {},
    bool ShowDepth = true,
    bool MSStyle = false)

Description

AttachHeaderIncludeGen - Create a header include list generator, and attach it to the given preprocessor.

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

Parameters

clang::Preprocessor& PP
const clang::DependencyOutputOptions& DepOpts
- Options controlling the output.
bool ShowAllHeaders = false
- If true, show all header information instead of just headers following the predefines buffer. This is useful for making sure includes mentioned on the command line are also reported, but differs from the default behavior used by -H.
llvm::StringRef OutputPath = {}
- If non-empty, a path to write the header include information to, instead of writing to stderr.
bool ShowDepth = true
- Whether to indent to show the nesting of the includes.
bool MSStyle = false
- Whether to print in cl.exe /showIncludes style.