clang 17.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/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)
 
static std::vector< std::string > splitString (std::string S, char Separator)
 
static bool needsModules (FrontendInputFile FIF)
 
static std::string getModuleContextHash (const ModuleDeps &MD, const CompilerInvocation &CI, bool EagerLoadModules)
 
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 498 of file ModuleDepCollector.cpp.

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

◆ getModuleContextHash()

static std::string getModuleContextHash ( const ModuleDeps MD,
const CompilerInvocation CI,
bool  EagerLoadModules 
)
static

◆ makeAbsoluteAndPreferred()

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

◆ needsModules()

static bool needsModules ( FrontendInputFile  FIF)
static

◆ optimizeHeaderSearchOpts()

static void optimizeHeaderSearchOpts ( HeaderSearchOptions Opts,
ASTReader Reader,
const serialization::ModuleFile MF 
)
static

◆ splitString()

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

Definition at line 46 of file ModuleDepCollector.cpp.