9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H 20 Symbol
mergeSymbol(
const Symbol &L,
const Symbol &R);
37 : Dynamic(Dynamic), Static(Static) {}
40 llvm::function_ref<
void(
const Symbol &)>)
const override;
42 llvm::function_ref<
void(
const Symbol &)>)
const override;
44 llvm::function_ref<
void(
const Ref &)>)
const override;
56 #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)
Represents a symbol occurrence in the source file.
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)
void relations(const RelationsRequest &, llvm::function_ref< void(const SymbolID &, const Symbol &)>) const override
The class presents a C++ symbol, e.g.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
bool 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...