clang 19.0.0git
Public Member Functions | Public Attributes | List of all members
clang::DependencyOutputOptions Class Reference

DependencyOutputOptions - Options for controlling the compiler dependency file generation. More...

#include "clang/Frontend/DependencyOutputOptions.h"

Public Member Functions

 DependencyOutputOptions ()
 

Public Attributes

unsigned IncludeSystemHeaders: 1
 Include system header dependencies.
 
unsigned ShowHeaderIncludes: 1
 Show header inclusions (-H).
 
unsigned UsePhonyTargets: 1
 Include phony targets for each dependency, which can avoid some 'make' problems.
 
unsigned AddMissingHeaderDeps: 1
 Add missing headers to dependency list.
 
unsigned IncludeModuleFiles: 1
 Include module file dependencies.
 
unsigned ShowSkippedHeaderIncludes: 1
 With ShowHeaderIncludes, show also includes that were skipped due to the "include guard optimization" or #pragma once.
 
HeaderIncludeFormatKind HeaderIncludeFormat = HIFMT_Textual
 The format of header information.
 
HeaderIncludeFilteringKind HeaderIncludeFiltering = HIFIL_None
 Determine whether header information should be filtered.
 
ShowIncludesDestination ShowIncludesDest = ShowIncludesDestination::None
 Destination of cl.exe style /showIncludes info.
 
DependencyOutputFormat OutputFormat = DependencyOutputFormat::Make
 The format for the dependency file.
 
std::string OutputFile
 The file to write dependency output to.
 
std::string HeaderIncludeOutputFile
 The file to write header include output to.
 
std::vector< std::string > Targets
 A list of names to use as the targets in the dependency file; this list must contain at least one entry.
 
std::vector< std::pair< std::string, ExtraDepKind > > ExtraDeps
 A list of extra dependencies (filename and kind) to be used for every target.
 
std::string DOTOutputFile
 The file to write GraphViz-formatted header dependencies to.
 
std::string ModuleDependencyOutputDir
 The directory to copy module dependencies to when collecting them.
 

Detailed Description

DependencyOutputOptions - Options for controlling the compiler dependency file generation.

Definition at line 34 of file DependencyOutputOptions.h.

Constructor & Destructor Documentation

◆ DependencyOutputOptions()

clang::DependencyOutputOptions::DependencyOutputOptions ( )
inline

Definition at line 90 of file DependencyOutputOptions.h.

Member Data Documentation

◆ AddMissingHeaderDeps

unsigned clang::DependencyOutputOptions::AddMissingHeaderDeps

Add missing headers to dependency list.

Definition at line 45 of file DependencyOutputOptions.h.

◆ DOTOutputFile

std::string clang::DependencyOutputOptions::DOTOutputFile

The file to write GraphViz-formatted header dependencies to.

Definition at line 84 of file DependencyOutputOptions.h.

Referenced by clang::CompilerInstance::createPreprocessor().

◆ ExtraDeps

std::vector<std::pair<std::string, ExtraDepKind> > clang::DependencyOutputOptions::ExtraDeps

A list of extra dependencies (filename and kind) to be used for every target.

Definition at line 81 of file DependencyOutputOptions.h.

Referenced by clang::AttachHeaderIncludeGen(), clang::DependencyFileGenerator::DependencyFileGenerator(), GenerateDependencyOutputArgs(), and ParseDependencyOutputArgs().

◆ HeaderIncludeFiltering

HeaderIncludeFilteringKind clang::DependencyOutputOptions::HeaderIncludeFiltering = HIFIL_None

Determine whether header information should be filtered.

Definition at line 58 of file DependencyOutputOptions.h.

Referenced by clang::AttachHeaderIncludeGen(), and ParseDependencyOutputArgs().

◆ HeaderIncludeFormat

HeaderIncludeFormatKind clang::DependencyOutputOptions::HeaderIncludeFormat = HIFMT_Textual

The format of header information.

Definition at line 55 of file DependencyOutputOptions.h.

Referenced by clang::AttachHeaderIncludeGen(), and ParseDependencyOutputArgs().

◆ HeaderIncludeOutputFile

std::string clang::DependencyOutputOptions::HeaderIncludeOutputFile

The file to write header include output to.

This is orthogonal to ShowHeaderIncludes (-H) and will include headers mentioned in the predefines buffer. If the output file is "-", output will be sent to stderr.

Definition at line 73 of file DependencyOutputOptions.h.

Referenced by clang::CompilerInstance::createPreprocessor().

◆ IncludeModuleFiles

unsigned clang::DependencyOutputOptions::IncludeModuleFiles

Include module file dependencies.

Definition at line 47 of file DependencyOutputOptions.h.

◆ IncludeSystemHeaders

unsigned clang::DependencyOutputOptions::IncludeSystemHeaders

Include system header dependencies.

Definition at line 37 of file DependencyOutputOptions.h.

Referenced by ParseDependencyOutputArgs().

◆ ModuleDependencyOutputDir

std::string clang::DependencyOutputOptions::ModuleDependencyOutputDir

The directory to copy module dependencies to when collecting them.

Definition at line 87 of file DependencyOutputOptions.h.

Referenced by clang::CompilerInstance::createPreprocessor().

◆ OutputFile

std::string clang::DependencyOutputOptions::OutputFile

The file to write dependency output to.

Definition at line 67 of file DependencyOutputOptions.h.

Referenced by clang::CompilerInstance::createPreprocessor(), and makeCommonInvocationForModuleBuild().

◆ OutputFormat

DependencyOutputFormat clang::DependencyOutputOptions::OutputFormat = DependencyOutputFormat::Make

The format for the dependency file.

Definition at line 64 of file DependencyOutputOptions.h.

◆ ShowHeaderIncludes

unsigned clang::DependencyOutputOptions::ShowHeaderIncludes

Show header inclusions (-H).

Definition at line 39 of file DependencyOutputOptions.h.

Referenced by clang::CompilerInstance::createPreprocessor().

◆ ShowIncludesDest

ShowIncludesDestination clang::DependencyOutputOptions::ShowIncludesDest = ShowIncludesDestination::None

◆ ShowSkippedHeaderIncludes

unsigned clang::DependencyOutputOptions::ShowSkippedHeaderIncludes

With ShowHeaderIncludes, show also includes that were skipped due to the "include guard optimization" or #pragma once.

Definition at line 49 of file DependencyOutputOptions.h.

◆ Targets

std::vector<std::string> clang::DependencyOutputOptions::Targets

A list of names to use as the targets in the dependency file; this list must contain at least one entry.

Definition at line 77 of file DependencyOutputOptions.h.

Referenced by makeCommonInvocationForModuleBuild().

◆ UsePhonyTargets

unsigned clang::DependencyOutputOptions::UsePhonyTargets

Include phony targets for each dependency, which can avoid some 'make' problems.

Definition at line 41 of file DependencyOutputOptions.h.


The documentation for this class was generated from the following file: