clang-tools
10.0.0git
|
#include <Merge.h>
Public Member Functions | |
MergedIndex (const SymbolIndex *Dynamic, const SymbolIndex *Static) | |
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. More... | |
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. More... | |
bool | refs (const RefsRequest &, llvm::function_ref< void(const Ref &)>) const override |
Finds all occurrences (e.g. More... | |
void | relations (const RelationsRequest &, llvm::function_ref< void(const SymbolID &, const Symbol &)>) const override |
size_t | estimateMemoryUsage () const override |
Returns estimated size of index (in bytes). More... | |
![]() | |
virtual | ~SymbolIndex ()=default |
virtual void | relations (const RelationsRequest &Req, llvm::function_ref< void(const SymbolID &Subject, const Symbol &Object)> Callback) const =0 |
Finds all relations (S, P, O) stored in the index such that S is among Req.Subjects and P is Req.Predicate, and invokes Callback for (S, O) in each. More... | |
|
inline |
Definition at line 36 of file Merge.h.
References fuzzyFind(), lookup(), refs(), and relations().
|
inlineoverridevirtual |
Returns estimated size of index (in bytes).
Implements clang::clangd::SymbolIndex.
Definition at line 48 of file Merge.h.
References clang::clangd::SymbolIndex::estimateMemoryUsage().
|
overridevirtual |
Matches symbols in the index fuzzily and applies Callback
on each matched symbol before returning.
If returned Symbols are used outside Callback, they must be deep-copied!
Returns true if there may be more results (limited by Req.Limit).
Implements clang::clangd::SymbolIndex.
Definition at line 30 of file Merge.cpp.
Referenced by MergedIndex().
|
overridevirtual |
Looks up symbols with any of the given symbol IDs and applies Callback
on each matched symbol.
The returned symbol must be deep-copied if it's used outside Callback.
Implements clang::clangd::SymbolIndex.
Definition at line 70 of file Merge.cpp.
Referenced by MergedIndex().
|
overridevirtual |
Finds all occurrences (e.g.
references, declarations, definitions) of a symbol and applies Callback
on each result.
Results should be returned in arbitrary order. The returned result must be deep-copied if it's used outside Callback.
Returns true if there will be more results (limited by Req.Limit);
Implements clang::clangd::SymbolIndex.
Definition at line 92 of file Merge.cpp.
Referenced by MergedIndex().
|
override |
Definition at line 130 of file Merge.cpp.
References clang::clangd::Symbol::ID, clang::clangd::RelationsRequest::Limit, clang::clangd::Object, and clang::clangd::SymbolIndex::relations().
Referenced by MergedIndex().