clang 19.0.0git
Functions
ModuleDepCollector.cpp File Reference
#include "clang/Tooling/DependencyScanning/ModuleDepCollector.h"
#include "clang/Basic/MakeSupport.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/DependencyScanning/DependencyScanningWorker.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/BLAKE3.h"
#include "llvm/Support/StringSaver.h"
#include <optional>

Go to the source code of this file.

Functions

static void optimizeHeaderSearchOpts (HeaderSearchOptions &Opts, ASTReader &Reader, const serialization::ModuleFile &MF, const PrebuiltModuleVFSMapT &PrebuiltModuleVFSMap, ScanningOptimizations OptimizeArgs)
 
static void optimizeDiagnosticOpts (DiagnosticOptions &Opts, bool IsSystemModule)
 
static std::vector< std::string > splitString (std::string S, char Separator)
 
static CowCompilerInvocation makeCommonInvocationForModuleBuild (CompilerInvocation CI)
 
static bool needsModules (FrontendInputFile FIF)
 
static std::string getModuleContextHash (const ModuleDeps &MD, const CowCompilerInvocation &CI, bool EagerLoadModules, llvm::vfs::FileSystem &VFS)
 
static void forEachSubmoduleSorted (const Module *M, llvm::function_ref< void(const Module *)> F)
 
static StringRef makeAbsoluteAndPreferred (CompilerInstance &CI, StringRef Path, SmallVectorImpl< char > &Storage)
 

Function Documentation

◆ forEachSubmoduleSorted()

static void forEachSubmoduleSorted ( const Module M,
llvm::function_ref< void(const Module *)>  F 
)
static

Definition at line 656 of file ModuleDepCollector.cpp.

References clang::Module::Name, and clang::Module::submodules().

◆ getModuleContextHash()

static std::string getModuleContextHash ( const ModuleDeps MD,
const CowCompilerInvocation CI,
bool  EagerLoadModules,
llvm::vfs::FileSystem &  VFS 
)
static

◆ makeAbsoluteAndPreferred()

static StringRef makeAbsoluteAndPreferred ( CompilerInstance CI,
StringRef  Path,
SmallVectorImpl< char > &  Storage 
)
static

◆ makeCommonInvocationForModuleBuild()

static CowCompilerInvocation makeCommonInvocationForModuleBuild ( CompilerInvocation  CI)
static

◆ needsModules()

static bool needsModules ( FrontendInputFile  FIF)
static

◆ optimizeDiagnosticOpts()

static void optimizeDiagnosticOpts ( DiagnosticOptions Opts,
bool  IsSystemModule 
)
static

◆ optimizeHeaderSearchOpts()

static void optimizeHeaderSearchOpts ( HeaderSearchOptions Opts,
ASTReader Reader,
const serialization::ModuleFile MF,
const PrebuiltModuleVFSMapT PrebuiltModuleVFSMap,
ScanningOptimizations  OptimizeArgs 
)
static

◆ splitString()

static std::vector< std::string > splitString ( std::string  S,
char  Separator 
)
static

Definition at line 122 of file ModuleDepCollector.cpp.

References clang::Result.