clang 24.0.0git
clang::dependencies::ModuleCacheEntry Struct Reference

#include "clang/DependencyScanning/InProcessModuleCache.h"

Public Types

enum  { S_Unknown , S_Read , S_Written }

Public Attributes

std::mutex Mutex
std::condition_variable CondVar
bool Locked = false
unsigned Generation = 0
std::atomic< std::time_t > Timestamp = 0
enum clang::dependencies::ModuleCacheEntry:: { ... }  State = S_Unknown
std::shared_ptr< const llvm::MemoryBuffer > Buffer
 The buffer we've read from disk or written to the module cache, if any.
time_t ModTime = 0
 The modification time of the entry.

Detailed Description

Definition at line 30 of file InProcessModuleCache.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
S_Unknown 
S_Read 
S_Written 

Definition at line 38 of file InProcessModuleCache.h.

Member Data Documentation

◆ Buffer

std::shared_ptr<const llvm::MemoryBuffer> clang::dependencies::ModuleCacheEntry::Buffer

The buffer we've read from disk or written to the module cache, if any.

Buffers returned from ModuleCache::read() share ownership of this, so it can be replaced while readers still reference the previous contents.

Definition at line 46 of file InProcessModuleCache.h.

◆ CondVar

std::condition_variable clang::dependencies::ModuleCacheEntry::CondVar

Definition at line 32 of file InProcessModuleCache.h.

◆ Generation

unsigned clang::dependencies::ModuleCacheEntry::Generation = 0

Definition at line 34 of file InProcessModuleCache.h.

◆ Locked

bool clang::dependencies::ModuleCacheEntry::Locked = false

Definition at line 33 of file InProcessModuleCache.h.

◆ ModTime

time_t clang::dependencies::ModuleCacheEntry::ModTime = 0

The modification time of the entry.

Definition at line 48 of file InProcessModuleCache.h.

◆ Mutex

std::mutex clang::dependencies::ModuleCacheEntry::Mutex

Definition at line 31 of file InProcessModuleCache.h.

◆ []

enum { ... } clang::dependencies::ModuleCacheEntry::State

◆ Timestamp

std::atomic<std::time_t> clang::dependencies::ModuleCacheEntry::Timestamp = 0

Definition at line 36 of file InProcessModuleCache.h.


The documentation for this struct was generated from the following file: