clang 20.0.0git
|
Contents and directive tokens of a cached file entry. More...
#include "clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h"
Public Member Functions | |
CachedFileContents (std::unique_ptr< llvm::MemoryBuffer > Contents) | |
~CachedFileContents () | |
Public Attributes | |
std::unique_ptr< llvm::MemoryBuffer > | Original |
Owning storage for the original contents. | |
std::mutex | ValueLock |
The mutex that must be locked before mutating directive tokens. | |
SmallVector< dependency_directives_scan::Token, 10 > | DepDirectiveTokens |
std::atomic< const std::optional< DependencyDirectivesTy > * > | DepDirectives |
Accessor to the directive tokens that's atomic to avoid data races. | |
Contents and directive tokens of a cached file entry.
Single instance can be shared between multiple entries.
Definition at line 31 of file DependencyScanningFilesystem.h.
|
inline |
Definition at line 32 of file DependencyScanningFilesystem.h.
|
inline |
Definition at line 45 of file DependencyScanningFilesystem.h.
References DepDirectives.
std::atomic<const std::optional<DependencyDirectivesTy> *> clang::tooling::dependencies::CachedFileContents::DepDirectives |
Accessor to the directive tokens that's atomic to avoid data races.
CachedFileContents
has ownership of the pointer.
Definition at line 43 of file DependencyScanningFilesystem.h.
Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::ensureDirectiveTokensArePopulated(), clang::tooling::dependencies::CachedFileSystemEntry::getDirectiveTokens(), and ~CachedFileContents().
SmallVector<dependency_directives_scan::Token, 10> clang::tooling::dependencies::CachedFileContents::DepDirectiveTokens |
Definition at line 40 of file DependencyScanningFilesystem.h.
Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::ensureDirectiveTokensArePopulated().
std::unique_ptr<llvm::MemoryBuffer> clang::tooling::dependencies::CachedFileContents::Original |
Owning storage for the original contents.
Definition at line 36 of file DependencyScanningFilesystem.h.
Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::ensureDirectiveTokensArePopulated(), and clang::tooling::dependencies::CachedFileSystemEntry::getOriginalContents().
std::mutex clang::tooling::dependencies::CachedFileContents::ValueLock |
The mutex that must be locked before mutating directive tokens.
Definition at line 39 of file DependencyScanningFilesystem.h.
Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::ensureDirectiveTokensArePopulated().