Go to the documentation of this file.
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);
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;
49 return Dynamic->estimateMemoryUsage() +
Static->estimateMemoryUsage();
56 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H
size_t estimateMemoryUsage() const override
Returns estimated size of index (in bytes).
void relations(const RelationsRequest &, llvm::function_ref< void(const SymbolID &, const Symbol &)>) const override
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.
bool refs(const RefsRequest &, llvm::function_ref< void(const Ref &)>) const override
Finds all occurrences (e.g.
The class presents a C++ symbol, e.g.
Symbol mergeSymbol(const Symbol &L, const Symbol &R)
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
Represents a symbol occurrence in the source file.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
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.
MergedIndex(const SymbolIndex *Dynamic, const SymbolIndex *Static)