clang 23.0.0git
DependencyScannerImpl.cpp File Reference
#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< CompilerInvocationcreateScanCompilerInvocation (const CompilerInvocation &Invocation, const DependencyScanningService &Service)
 Creates a CompilerInvocation suitable for the dependency scanner.
static std::unique_ptr< DependencyOutputOptionscreateDependencyOutputOptions (const CompilerInvocation &Invocation)
 Creates dependency output options to be reported to the dependency consumer, deducing missing information if necessary.

Function Documentation

◆ createDependencyOutputOptions()

std::unique_ptr< DependencyOutputOptions > createDependencyOutputOptions ( const CompilerInvocation & Invocation)
static

◆ createScanCompilerInvocation()