clang-tools 22.0.0git
clang::clangd::BackgroundIndexStorage Class Referenceabstract

#include <Background.h>

Inheritance diagram for clang::clangd::BackgroundIndexStorage:
[legend]

Public Types

using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>

Public Member Functions

virtual ~BackgroundIndexStorage ()=default
virtual llvm::Error storeShard (llvm::StringRef ShardIdentifier, IndexFileOut Shard) const =0
virtual std::unique_ptr< IndexFileInloadShard (llvm::StringRef ShardIdentifier) const =0

Static Public Member Functions

static Factory createDiskBackedStorageFactory (std::function< std::optional< ProjectInfo >(PathRef)> GetProjectInfo)

Detailed Description

Definition at line 41 of file Background.h.

Member Typedef Documentation

◆ Factory

Definition at line 58 of file Background.h.

Constructor & Destructor Documentation

◆ ~BackgroundIndexStorage()

virtual clang::clangd::BackgroundIndexStorage::~BackgroundIndexStorage ( )
virtualdefault

Member Function Documentation

◆ createDiskBackedStorageFactory()

BackgroundIndexStorage::Factory clang::clangd::BackgroundIndexStorage::createDiskBackedStorageFactory ( std::function< std::optional< ProjectInfo >(PathRef)> GetProjectInfo)
static

Definition at line 143 of file BackgroundIndexStorage.cpp.

◆ loadShard()

virtual std::unique_ptr< IndexFileIn > clang::clangd::BackgroundIndexStorage::loadShard ( llvm::StringRef ShardIdentifier) const
pure virtual

◆ storeShard()

virtual llvm::Error clang::clangd::BackgroundIndexStorage::storeShard ( llvm::StringRef ShardIdentifier,
IndexFileOut Shard ) const
pure virtual

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