[clangd] A comment for ClangdServer's constructor. NFC.

llvm-svn: 305299
This commit is contained in:
Ilya Biryukov 2017-06-13 16:02:27 +00:00
parent 103c951c52
commit 0bdafe5b63
1 changed files with 9 additions and 0 deletions

View File

@ -136,6 +136,15 @@ private:
/// diagnostics for tracked files).
class ClangdServer {
public:
/// Creates a new ClangdServer. If \p RunSynchronously is false, no worker
/// thread will be created and all requests will be completed synchronously on
/// the calling thread (this is mostly used for tests). If \p RunSynchronously
/// is true, a worker thread will be created to parse files in the background
/// and provide diagnostics results via DiagConsumer.onDiagnosticsReady
/// callback. File accesses for each instance of parsing will be conducted via
/// a vfs::FileSystem provided by \p FSProvider. Results of code
/// completion/diagnostics also include a tag, that \p FSProvider returns
/// along with the vfs::FileSystem.
ClangdServer(GlobalCompilationDatabase &CDB,
DiagnosticsConsumer &DiagConsumer,
FileSystemProvider &FSProvider, bool RunSynchronously);