summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/TUScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/TUScheduler.cpp')
-rw-r--r--clang-tools-extra/clangd/TUScheduler.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/clang-tools-extra/clangd/TUScheduler.cpp b/clang-tools-extra/clangd/TUScheduler.cpp
index 96b29f12fdd..4c18dcdab6b 100644
--- a/clang-tools-extra/clangd/TUScheduler.cpp
+++ b/clang-tools-extra/clangd/TUScheduler.cpp
@@ -23,9 +23,8 @@ TUScheduler::TUScheduler(unsigned AsyncThreadsCount,
Threads(AsyncThreadsCount) {}
void TUScheduler::update(
- Context Ctx, PathRef File, ParseInputs Inputs,
- UniqueFunction<void(Context Ctx,
- llvm::Optional<std::vector<DiagWithFixIts>>)>
+ PathRef File, ParseInputs Inputs,
+ UniqueFunction<void(llvm::Optional<std::vector<DiagWithFixIts>>)>
OnUpdated) {
CachedInputs[File] = Inputs;
@@ -33,12 +32,12 @@ void TUScheduler::update(
auto DeferredRebuild = Resources->deferRebuild(std::move(Inputs));
Threads.addToFront(
- [](Context Ctx, decltype(OnUpdated) OnUpdated,
+ [](decltype(OnUpdated) OnUpdated,
decltype(DeferredRebuild) DeferredRebuild) {
- auto Diags = DeferredRebuild(Ctx);
- OnUpdated(std::move(Ctx), Diags);
+ auto Diags = DeferredRebuild();
+ OnUpdated(Diags);
},
- std::move(Ctx), std::move(OnUpdated), std::move(DeferredRebuild));
+ std::move(OnUpdated), std::move(DeferredRebuild));
}
void TUScheduler::remove(PathRef File,
OpenPOWER on IntegriCloud