struct CachedFileContents

Declaration

struct CachedFileContents { /* full declaration omitted */ };

Description

Contents and directive tokens of a cached file entry. Single instance can be shared between multiple entries.

Declared at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h:30

Member Variables

public std::unique_ptr<llvm::MemoryBuffer> Original
Owning storage for the original contents.
public std::mutex ValueLock
The mutex that must be locked before mutating directive tokens.
public SmallVector<dependency_directives_scan::Token, 10> DepDirectiveTokens
public std::atomic< const Optional<DependencyDirectivesTy>*> DepDirectives
Accessor to the directive tokens that's atomic to avoid data races.\p CachedFileContents has ownership of the pointer.

Method Overview

Methods

CachedFileContents(
    std::unique_ptr<llvm::MemoryBuffer> Contents)

Declared at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h:31

Parameters

std::unique_ptr<llvm::MemoryBuffer> Contents

~CachedFileContents()

Declared at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h:44