clang
10.0.0git
|
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 (DependencyScanningService &Service) | |
llvm::Error | computeDependencies (const std::string &Input, StringRef WorkingDirectory, const CompilationDatabase &CDB, DependencyConsumer &Consumer) |
Run the dependency scanning tool for a given clang driver invocation (as specified for the given Input in the CDB), and report the discovered dependencies to the provided consumer. More... | |
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 51 of file DependencyScanningWorker.h.
DependencyScanningWorker::DependencyScanningWorker | ( | DependencyScanningService & | Service | ) |
Definition at line 169 of file DependencyScanningWorker.cpp.
References clang::tooling::dependencies::DependencyScanningService::canReuseFileManager(), clang::tooling::dependencies::DependencyScanningService::canSkipExcludedPPRanges(), clang::tooling::dependencies::DependencyScanningService::getMode(), clang::tooling::dependencies::DependencyScanningService::getSharedCache(), and clang::tooling::dependencies::MinimizedSourcePreprocessing.
llvm::Error DependencyScanningWorker::computeDependencies | ( | const std::string & | Input, |
StringRef | WorkingDirectory, | ||
const CompilationDatabase & | CDB, | ||
DependencyConsumer & | Consumer | ||
) |
Run the dependency scanning tool for a given clang driver invocation (as specified for the given Input in the CDB), and report the discovered dependencies to the provided consumer.
StringError
with the diagnostic output if clang errors occurred, success otherwise. Create the tool that uses the underlying file system to ensure that any file system requests that are made by the driver do not go through the dependency scanning filesystem.
Definition at line 200 of file DependencyScanningWorker.cpp.
References clang::tooling::ClangTool::clearArgumentsAdjusters(), clang::tooling::ClangTool::run(), runWithDiags(), clang::tooling::ClangTool::setDiagnosticConsumer(), clang::tooling::ClangTool::setPrintErrorMessage(), and clang::tooling::ClangTool::setRestoreWorkingDir().