class DependencyPrinter

Declaration

class DependencyPrinter : public DependencyFileGenerator { /* full declaration omitted */ };

Description

Builds a dependency file when attached to a Preprocessor (for includes) and ASTReader (for module imports), and writes it out at the end of processing a source file. Users should attach to the ast reader whenever a module is loaded.

Declared at: clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp:87

Inherits from: DependencyFileGenerator

Member Variables

Method Overview

Inherited from DependencyFileGenerator:

Inherited from DependencyCollector:

Methods

DependencyPrinter(
    clang::DependencyOutputOptions& Opts,
    ArrayRef<std::string> Dependencies)

Declared at: clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp:89

Parameters

clang::DependencyOutputOptions& Opts
ArrayRef<std::string> Dependencies

void printDependencies(std::string& S)

Declared at: clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp:96

Parameters

std::string& S