clang  9.0.0
Public Member Functions | List of all members
clang::tooling::dependencies::DependencyScanningWorker Class Reference

An individual dependency scanning worker that is able to run on its own thread. More...

#include "clang/Tooling/DependencyScanning/DependencyScanningWorker.h"

Public Member Functions

 DependencyScanningWorker ()
 
llvm::Expected< std::string > getDependencyFile (const std::string &Input, StringRef WorkingDirectory, const CompilationDatabase &CDB)
 Print out the dependency information into a string using the dependency file format that is specified in the options (-MD is the default) and return it. More...
 

Detailed Description

An individual dependency scanning worker that is able to run on its own thread.

The worker computes the dependencies for the input files by preprocessing sources either using a fast mode where the source files are minimized, or using the regular processing run.

Definition at line 30 of file DependencyScanningWorker.h.

Constructor & Destructor Documentation

◆ DependencyScanningWorker()

DependencyScanningWorker::DependencyScanningWorker ( )

FIXME: Use the shared file system from the service for fast scanning mode.

Definition at line 118 of file DependencyScanningWorker.cpp.

Member Function Documentation

◆ getDependencyFile()

llvm::Expected< std::string > DependencyScanningWorker::getDependencyFile ( const std::string &  Input,
StringRef  WorkingDirectory,
const CompilationDatabase CDB 
)

Print out the dependency information into a string using the dependency file format that is specified in the options (-MD is the default) and return it.

Returns
A StringError with the diagnostic output if clang errors occurred, dependency file contents otherwise.

Definition at line 127 of file DependencyScanningWorker.cpp.

References clang::tooling::ClangTool::clearArgumentsAdjusters(), clang::tooling::ClangTool::run(), clang::tooling::ClangTool::setDiagnosticConsumer(), clang::tooling::ClangTool::setPrintErrorMessage(), and clang::tooling::ClangTool::setRestoreWorkingDir().


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