clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::LoadedShard Struct Reference

Represents a shard loaded from storage, stores contents in Shard and metadata about the source file that generated this shard. More...

#include <BackgroundIndexLoader.h>

Public Attributes

Path AbsolutePath
 Path of the source file that produced this shard.
 
FileDigest Digest = {}
 Digest of the source file contents that produced this shard.
 
bool CountReferences = false
 Whether the RefSlab in Shard should be used for updating symbol reference counts when building an index.
 
bool HadErrors = false
 Whether the indexing action producing that shard had errors.
 
Path DependentTU
 Path to a TU that is depending on this shard.
 
std::unique_ptr< IndexFileInShard
 Will be nullptr when index storage couldn't provide a valid shard for AbsolutePath.
 

Detailed Description

Represents a shard loaded from storage, stores contents in Shard and metadata about the source file that generated this shard.

Definition at line 23 of file BackgroundIndexLoader.h.

Member Data Documentation

◆ AbsolutePath

Path clang::clangd::LoadedShard::AbsolutePath

Path of the source file that produced this shard.

Definition at line 25 of file BackgroundIndexLoader.h.

◆ CountReferences

bool clang::clangd::LoadedShard::CountReferences = false

Whether the RefSlab in Shard should be used for updating symbol reference counts when building an index.

Definition at line 30 of file BackgroundIndexLoader.h.

◆ DependentTU

Path clang::clangd::LoadedShard::DependentTU

Path to a TU that is depending on this shard.

Definition at line 34 of file BackgroundIndexLoader.h.

◆ Digest

FileDigest clang::clangd::LoadedShard::Digest = {}

Digest of the source file contents that produced this shard.

Definition at line 27 of file BackgroundIndexLoader.h.

◆ HadErrors

bool clang::clangd::LoadedShard::HadErrors = false

Whether the indexing action producing that shard had errors.

Definition at line 32 of file BackgroundIndexLoader.h.

◆ Shard

std::unique_ptr<IndexFileIn> clang::clangd::LoadedShard::Shard

Will be nullptr when index storage couldn't provide a valid shard for AbsolutePath.

Definition at line 37 of file BackgroundIndexLoader.h.


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