9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_MERGE_H
20Symbol
mergeSymbol(
const Symbol &L,
const Symbol &R);
36 llvm::function_ref<
void(
const Symbol &)>)
const override;
38 llvm::function_ref<
void(
const Symbol &)>)
const override;
40 llvm::function_ref<
void(
const Ref &)>)
const override;
MergedIndex(const SymbolIndex *Dynamic, const SymbolIndex *Static)
void relations(const RelationsRequest &, llvm::function_ref< void(const SymbolID &, const Symbol &)>) const override
bool refs(const RefsRequest &, llvm::function_ref< void(const Ref &)>) const override
Finds all occurrences (e.g.
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.
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.
size_t estimateMemoryUsage() const override
Returns estimated size of index (in bytes).
llvm::unique_function< IndexContents(llvm::StringRef) const > indexedFiles() const override
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
virtual size_t estimateMemoryUsage() const =0
Returns estimated size of index (in bytes).
IndexContents
Describes what data is covered by an index.
Symbol mergeSymbol(const Symbol &L, const Symbol &R)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Represents a symbol occurrence in the source file.
The class presents a C++ symbol, e.g.