10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H 11 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H 21 Symbol
mergeSymbol(
const Symbol &L,
const Symbol &R);
38 : Dynamic(Dynamic), Static(Static) {}
41 llvm::function_ref<
void(
const Symbol &)>)
const override;
43 llvm::function_ref<
void(
const Symbol &)>)
const override;
45 llvm::function_ref<
void(
const Ref &)>)
const override;
54 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H size_t estimateMemoryUsage() const override
Returns estimated size of index (in bytes).
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
MergedIndex(const SymbolIndex *Dynamic, const SymbolIndex *Static)
void lookup(const LookupRequest &, llvm::function_ref< void(const Symbol &)>) const override
Looks up symbols with any of the given symbol IDs and applies Callback on each matched symbol...
Symbol mergeSymbol(const Symbol &L, const Symbol &R)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
void refs(const RefsRequest &, llvm::function_ref< void(const Ref &)>) const override
Finds all occurrences (e.g.
virtual size_t estimateMemoryUsage() const =0
Returns estimated size of index (in bytes).
bool fuzzyFind(const FuzzyFindRequest &, llvm::function_ref< void(const Symbol &)>) const override
Matches symbols in the index fuzzily and applies Callback on each matched symbol before returning...