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
- public DependencyPrinter(clang::DependencyOutputOptions & Opts, ArrayRef<std::string> Dependencies)
- public void printDependencies(std::string & S)
Inherited from DependencyFileGenerator:
- public attachToPreprocessor
- public finishedMainFile
- public needSystemDependencies
- protected outputDependencyFile
- public sawDependency
Inherited from DependencyCollector:
- protected addDependency
- public attachToASTReader
- public attachToPreprocessor
- public finishedMainFile
- public getDependencies
- public maybeAddDependency
- public needSystemDependencies
- public sawDependency
Methods
¶DependencyPrinter(
clang::DependencyOutputOptions& Opts,
ArrayRef<std::string> Dependencies)
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)
void printDependencies(std::string& S)
Declared at: clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp:96
Parameters
- std::string& S