We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2811ab6 commit 7a268b8Copy full SHA for 7a268b8
clang-tools-extra/clangd/ClangdServer.cpp
@@ -233,6 +233,9 @@ ClangdServer::ClangdServer(const GlobalCompilationDatabase &CDB,
233
}
234
235
ClangdServer::~ClangdServer() {
236
+ // Wait for stdlib indexing to finish.
237
+ if (IndexTasks)
238
+ IndexTasks->wait();
239
// Destroying TUScheduler first shuts down request threads that might
240
// otherwise access members concurrently.
241
// (Nobody can be using TUScheduler because we're on the main thread).
0 commit comments