clang-tools 20.0.0git
|
Public Member Functions | |
MemoryShardStorage (llvm::StringMap< std::string > &Storage, size_t &CacheHits) | |
llvm::Error | storeShard (llvm::StringRef ShardIdentifier, IndexFileOut Shard) const override |
std::unique_ptr< IndexFileIn > | loadShard (llvm::StringRef ShardIdentifier) const override |
Public Member Functions inherited from clang::clangd::BackgroundIndexStorage | |
virtual | ~BackgroundIndexStorage ()=default |
virtual llvm::Error | storeShard (llvm::StringRef ShardIdentifier, IndexFileOut Shard) const =0 |
virtual std::unique_ptr< IndexFileIn > | loadShard (llvm::StringRef ShardIdentifier) const =0 |
Public Attributes | |
llvm::StringSet | AccessedPaths |
Additional Inherited Members | |
Public Types inherited from clang::clangd::BackgroundIndexStorage | |
using | Factory = llvm::unique_function< BackgroundIndexStorage *(PathRef)> |
Static Public Member Functions inherited from clang::clangd::BackgroundIndexStorage | |
static Factory | createDiskBackedStorageFactory (std::function< std::optional< ProjectInfo >(PathRef)> GetProjectInfo) |
Definition at line 53 of file BackgroundIndexTests.cpp.
|
inline |
Definition at line 59 of file BackgroundIndexTests.cpp.
|
inlineoverridevirtual |
Implements clang::clangd::BackgroundIndexStorage.
Definition at line 69 of file BackgroundIndexTests.cpp.
References AccessedPaths, clang::clangd::Background, and clang::clangd::readIndexFile().
Referenced by clang::clangd::TEST_F().
|
inlineoverridevirtual |
Implements clang::clangd::BackgroundIndexStorage.
Definition at line 61 of file BackgroundIndexTests.cpp.
References AccessedPaths.
|
mutable |
Definition at line 86 of file BackgroundIndexTests.cpp.
Referenced by loadShard(), and storeShard().