|
clang 22.0.0git
|
Public Member Functions | |
| DependencyScanningAction (DependencyScanningService &Service, StringRef WorkingDirectory, DependencyConsumer &Consumer, DependencyActionController &Controller, IntrusiveRefCntPtr< DependencyScanningWorkerFilesystem > DepFS, std::optional< StringRef > ModuleName=std::nullopt) | |
| bool | runInvocation (std::unique_ptr< CompilerInvocation > Invocation, IntrusiveRefCntPtr< llvm::vfs::FileSystem > FS, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagConsumer) |
| bool | hasScanned () const |
| bool | hasDiagConsumerFinished () const |
| std::vector< std::string > | takeLastCC1Arguments () |
| Take the cc1 arguments corresponding to the most recent invocation used with this action. | |
Definition at line 32 of file DependencyScannerImpl.h.
|
inline |
Definition at line 34 of file DependencyScannerImpl.h.
|
inline |
Definition at line 47 of file DependencyScannerImpl.h.
|
inline |
Definition at line 46 of file DependencyScannerImpl.h.
| bool DependencyScanningAction::runInvocation | ( | std::unique_ptr< CompilerInvocation > | Invocation, |
| IntrusiveRefCntPtr< llvm::vfs::FileSystem > | FS, | ||
| std::shared_ptr< PCHContainerOperations > | PCHContainerOps, | ||
| DiagnosticConsumer * | DiagConsumer ) |
Definition at line 638 of file DependencyScannerImpl.cpp.
References any(), clang::tooling::dependencies::computePrebuiltModulesASTMap(), clang::CompilerInstance::ExecuteAction(), clang::CompilerInstance::getDiagnostics(), clang::tooling::dependencies::getInitialStableDirs(), clang::DiagnosticsEngine::hasErrorOccurred(), clang::tooling::dependencies::initializeScanCompilerInstance(), clang::tooling::dependencies::initializeScanInstanceDependencyCollector(), clang::tooling::dependencies::Macros, clang::tooling::dependencies::makeInProcessModuleCache(), clang::tooling::dependencies::P1689, clang::Result, and clang::tooling::dependencies::takeAndUpdateDependencyOutputOptionsFrom().
Referenced by createAndRunToolInvocation().
|
inline |
Take the cc1 arguments corresponding to the most recent invocation used with this action.
Any modifications implied by the discovered dependencies will have already been applied.
Definition at line 52 of file DependencyScannerImpl.h.
References clang::Result.
Referenced by createAndRunToolInvocation().