clang-tools
8.0.0
|
#include <Index.h>
Public Member Functions | |
SwapIndex (std::unique_ptr< SymbolIndex > Index=nullptr) | |
void | reset (std::unique_ptr< SymbolIndex >) |
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... | |
void | refs (const RefsRequest &, llvm::function_ref< void(const Ref &)>) const override |
Finds all occurrences (e.g. More... | |
size_t | estimateMemoryUsage () const override |
Returns estimated size of index (in bytes). More... | |
![]() | |
virtual | ~SymbolIndex ()=default |
|
inline |
|
overridevirtual |
Returns estimated size of index (in bytes).
Implements clang::clangd::SymbolIndex.
|
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.
|
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.
|
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.
Implements clang::clangd::SymbolIndex.
void clang::clangd::SwapIndex::reset | ( | std::unique_ptr< SymbolIndex > | Index | ) |
Definition at line 162 of file Index.cpp.
Referenced by clang::clangd::FileIndex::updateMain().