clang 22.0.0git
clang::tooling::dependencies::PrebuiltModuleASTAttrs Class Reference

#include "clang/Tooling/DependencyScanning/ModuleDepCollector.h"

Public Member Functions

void updateDependentsNotInStableDirs (PrebuiltModulesAttrsMap &PrebuiltModulesMap)
 When a module is discovered to not be in stable directories, traverse & update all modules that depend on it.
bool isInStableDir () const
 Read-only access to whether the module is made up of dependencies in stable directories.
const llvm::StringSet & getVFS () const
 Read-only access to vfs map files.
void setVFS (llvm::StringSet<> &&VFS)
 Update the VFSMap to the one discovered from serializing the AST file.
void addDependent (StringRef ModuleFile)
 Add a direct dependent module file, so it can be updated if the current module is from stable directores.
void setInStableDir (bool V=false)
 Update whether the prebuilt module resolves entirely in a stable directories.

Detailed Description

Definition at line 53 of file ModuleDepCollector.h.

Member Function Documentation

◆ addDependent()

void clang::tooling::dependencies::PrebuiltModuleASTAttrs::addDependent ( StringRef ModuleFile)
inline

Add a direct dependent module file, so it can be updated if the current module is from stable directores.

Definition at line 72 of file ModuleDepCollector.h.

References clang::tooling::dependencies::ModuleFile.

◆ getVFS()

const llvm::StringSet & clang::tooling::dependencies::PrebuiltModuleASTAttrs::getVFS ( ) const
inline

Read-only access to vfs map files.

Definition at line 65 of file ModuleDepCollector.h.

◆ isInStableDir()

bool clang::tooling::dependencies::PrebuiltModuleASTAttrs::isInStableDir ( ) const
inline

Read-only access to whether the module is made up of dependencies in stable directories.

Definition at line 62 of file ModuleDepCollector.h.

Referenced by updateDependentsNotInStableDirs().

◆ setInStableDir()

void clang::tooling::dependencies::PrebuiltModuleASTAttrs::setInStableDir ( bool V = false)
inline

Update whether the prebuilt module resolves entirely in a stable directories.

Definition at line 78 of file ModuleDepCollector.h.

References V.

Referenced by updateDependentsNotInStableDirs().

◆ setVFS()

void clang::tooling::dependencies::PrebuiltModuleASTAttrs::setVFS ( llvm::StringSet<> && VFS)
inline

Update the VFSMap to the one discovered from serializing the AST file.

Definition at line 68 of file ModuleDepCollector.h.

References clang::tooling::dependencies::VFS.

◆ updateDependentsNotInStableDirs()

void PrebuiltModuleASTAttrs::updateDependentsNotInStableDirs ( PrebuiltModulesAttrsMap & PrebuiltModulesMap)

When a module is discovered to not be in stable directories, traverse & update all modules that depend on it.

Definition at line 43 of file ModuleDepCollector.cpp.

References isInStableDir(), and setInStableDir().


The documentation for this class was generated from the following files: