[clangd] Propagate main context into ClangdServer
Currently clangd initializes the ClangdServer lazily during
onInitialize request, and it results in propagation of caller's context rather
than the main context created ClangdLSPServer.
This patch changes the logic to store main context that created ClangdLSPServer
and pass it onto to ClangdServer and other objects like CDBs.
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Differential Revision: https://reviews.llvm.org/D68978
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@374892 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed