[clangd] Lazily create CDB, remove setCompileCommandsDir.
authorSam McCall <sam.mccall@gmail.com>
Tue, 23 Oct 2018 14:19:54 +0000 (14:19 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 23 Oct 2018 14:19:54 +0000 (14:19 +0000)
commitd1c9d1163b89fa5084204c155b3d7ad7ab258b26
tree28e92ca7aa6ab55ea77cd99534cdeec3f3bd1e7b
parent5141435d232be4ff1efb841667c931c89525c89f
[clangd] Lazily create CDB, remove setCompileCommandsDir.

Summary:
The only way to actually set the directory is at initialize time,
so now CDB is lazy we can pass it to the constructor.

Reviewers: hokein

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D53572

llvm-svn: 345031
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdLSPServer.h