diff options
Diffstat (limited to 'clang-tools-extra/clangd/index/FileIndex.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/FileIndex.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp index 1e0016a2c34..5f4e157bd35 100644 --- a/clang-tools-extra/clangd/index/FileIndex.cpp +++ b/clang-tools-extra/clangd/index/FileIndex.cpp @@ -63,7 +63,7 @@ std::shared_ptr<std::vector<const Symbol *>> FileSymbols::allSymbols() { return {std::move(Snap), Pointers}; } -void FileIndex::update(Context &Ctx, PathRef Path, ParsedAST *AST) { +void FileIndex::update(const Context &Ctx, PathRef Path, ParsedAST *AST) { if (!AST) { FSymbols.update(Path, nullptr); } else { @@ -74,7 +74,7 @@ void FileIndex::update(Context &Ctx, PathRef Path, ParsedAST *AST) { Index.build(std::move(Symbols)); } -bool FileIndex::fuzzyFind(Context &Ctx, const FuzzyFindRequest &Req, +bool FileIndex::fuzzyFind(const Context &Ctx, const FuzzyFindRequest &Req, std::function<void(const Symbol &)> Callback) const { return Index.fuzzyFind(Ctx, Req, std::move(Callback)); } |

