|
clang 23.0.0git
|
#include "clang/DependencyScanning/DependencyScannerImpl.h"#include "clang/Basic/DiagnosticFrontend.h"#include "clang/Basic/DiagnosticSerialization.h"#include "clang/DependencyScanning/DependencyScanningFilesystem.h"#include "clang/DependencyScanning/DependencyScanningService.h"#include "clang/DependencyScanning/DependencyScanningWorker.h"#include "clang/Driver/Driver.h"#include "clang/Frontend/FrontendActions.h"#include "llvm/ADT/IntrusiveRefCntPtr.h"#include "llvm/ADT/ScopeExit.h"#include "llvm/Support/AdvisoryLock.h"#include "llvm/Support/CrashRecoveryContext.h"#include "llvm/Support/VirtualFileSystem.h"#include "llvm/TargetParser/Host.h"#include <mutex>#include <thread>Go to the source code of this file.
Classes | |
| class | AsyncModuleCompiles |
| Manages (and terminates) the asynchronous compilation of modules. More... | |
| struct | SingleModuleWithAsyncModuleCompiles |
| struct | AsyncModuleCompile |
| The preprocessor callback that takes care of initiating an asynchronous module compilation if needed. More... | |
| struct | SingleTUWithAsyncModuleCompiles |
| Runs the preprocessor on a TU with single-module-parse-mode and compiles modules asynchronously without blocking or importing them. More... | |
Functions | |
| static std::shared_ptr< CompilerInvocation > | createScanCompilerInvocation (const CompilerInvocation &Invocation, const DependencyScanningService &Service) |
| Creates a CompilerInvocation suitable for the dependency scanner. | |
| static std::unique_ptr< DependencyOutputOptions > | createDependencyOutputOptions (const CompilerInvocation &Invocation) |
| Creates dependency output options to be reported to the dependency consumer, deducing missing information if necessary. | |
|
static |
Creates dependency output options to be reported to the dependency consumer, deducing missing information if necessary.
Definition at line 517 of file DependencyScannerImpl.cpp.
References clang::CompilerInvocation::getDependencyOutputOpts(), clang::CompilerInvocation::getFrontendOpts(), clang::FrontendOptions::Inputs, and clang::FrontendOptions::OutputFile.
Referenced by clang::dependencies::CompilerInstanceWithContext::initialize(), and clang::dependencies::DependencyScanningAction::runInvocation().
|
static |
Creates a CompilerInvocation suitable for the dependency scanner.
Definition at line 435 of file DependencyScannerImpl.cpp.
References any(), clang::dependencies::DependencyScanningServiceOptions::BuildSessionTimestamp, clang::dependencies::DependencyScanningService::getOpts(), clang::dependencies::DependencyScanningServiceOptions::OptimizeArgs, and clang::dependencies::VFS.
Referenced by clang::dependencies::CompilerInstanceWithContext::initialize(), and clang::dependencies::DependencyScanningAction::runInvocation().