|
clang 23.0.0git
|
Dependency scanner callbacks that are used during scanning to influence the behaviour of the scan - for example, to customize the scanned invocations. More...
#include "clang/DependencyScanning/DependencyScanningWorker.h"
Public Member Functions | |
| virtual | ~DependencyActionController () |
| virtual std::unique_ptr< DependencyActionController > | clone () const =0 |
| Creates a copy of the controller. The result must be both thread-safe. | |
| virtual std::string | lookupModuleOutput (const ModuleDeps &MD, ModuleOutputKind Kind)=0 |
| Provides output path for a given module dependency. Must be thread-safe. | |
| virtual void | initializeScanInvocation (CompilerInvocation &ScanInvocation) |
| Initializes the scan invocation. | |
| virtual bool | initialize (CompilerInstance &ScanInstance, CompilerInvocation &NewInvocation) |
| Initializes the scan instance and modifies the resulting TU invocation. | |
| virtual bool | finalize (CompilerInstance &ScanInstance, CompilerInvocation &NewInvocation) |
| Finalizes the scan instance and modifies the resulting TU invocation. | |
| virtual std::optional< std::string > | getCacheKey (const CompilerInvocation &NewInvocation) |
| Returns the cache key for the resulting invocation, or nullopt. | |
| virtual bool | initializeModuleBuild (CompilerInstance &ModuleScanInstance) |
| Initializes the module scan instance. | |
| virtual bool | finalizeModuleBuild (CompilerInstance &ModuleScanInstance) |
| Finalizes the module scan instance. | |
| virtual bool | finalizeModuleInvocation (CompilerInstance &ScanInstance, CowCompilerInvocation &CI, const ModuleDeps &MD) |
| Modifies the resulting module invocation and the associated structure. | |
Dependency scanner callbacks that are used during scanning to influence the behaviour of the scan - for example, to customize the scanned invocations.
Definition at line 74 of file DependencyScanningWorker.h.
|
virtualdefault |
|
pure virtual |
Creates a copy of the controller. The result must be both thread-safe.
Implemented in clang::dependencies::CallbackActionController.
|
inlinevirtual |
Finalizes the scan instance and modifies the resulting TU invocation.
Returns true on success, false on failure.
Definition at line 97 of file DependencyScanningWorker.h.
Referenced by clang::tooling::CompilerInstanceWithContext::computeDependencies().
|
inlinevirtual |
Finalizes the module scan instance.
Returns true on success, false on failure.
Definition at line 116 of file DependencyScanningWorker.h.
|
inlinevirtual |
Modifies the resulting module invocation and the associated structure.
Returns true on success, false on failure.
Definition at line 122 of file DependencyScanningWorker.h.
|
inlinevirtual |
Returns the cache key for the resulting invocation, or nullopt.
Definition at line 104 of file DependencyScanningWorker.h.
|
inlinevirtual |
Initializes the scan instance and modifies the resulting TU invocation.
Returns true on success, false on failure.
Definition at line 90 of file DependencyScanningWorker.h.
Referenced by clang::tooling::CompilerInstanceWithContext::computeDependencies().
|
inlinevirtual |
Initializes the module scan instance.
Returns true on success, false on failure.
Definition at line 110 of file DependencyScanningWorker.h.
|
inlinevirtual |
Initializes the scan invocation.
Definition at line 86 of file DependencyScanningWorker.h.
Referenced by clang::dependencies::createScanCompilerInvocation().
|
pure virtual |
Provides output path for a given module dependency. Must be thread-safe.
Implemented in clang::dependencies::CallbackActionController.