clang 22.0.0git
clang::tooling::dependencies::DependencyScanningAction Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.h"

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.

Detailed Description

Definition at line 30 of file DependencyScannerImpl.h.

Constructor & Destructor Documentation

◆ DependencyScanningAction()

clang::tooling::dependencies::DependencyScanningAction::DependencyScanningAction ( DependencyScanningService & Service,
StringRef WorkingDirectory,
DependencyConsumer & Consumer,
DependencyActionController & Controller,
IntrusiveRefCntPtr< DependencyScanningWorkerFilesystem > DepFS,
std::optional< StringRef > ModuleName = std::nullopt )
inline

Definition at line 32 of file DependencyScannerImpl.h.

Member Function Documentation

◆ hasDiagConsumerFinished()

bool clang::tooling::dependencies::DependencyScanningAction::hasDiagConsumerFinished ( ) const
inline

Definition at line 46 of file DependencyScannerImpl.h.

◆ hasScanned()

bool clang::tooling::dependencies::DependencyScanningAction::hasScanned ( ) const
inline

Definition at line 45 of file DependencyScannerImpl.h.

◆ runInvocation()

◆ takeLastCC1Arguments()

std::vector< std::string > clang::tooling::dependencies::DependencyScanningAction::takeLastCC1Arguments ( )
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 51 of file DependencyScannerImpl.h.

References clang::Result.

Referenced by createAndRunToolInvocation().


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