krasimir added inline comments.

================
Comment at: clangd/ClangdLSPServer.cpp:206
 
-std::vector<CompletionItem> ClangdLSPServer::codeComplete(PathRef File,
-                                                          Position Pos) {
-  return Server.codeComplete(File, Pos);
+  // Set up JSONRPCDispatcher
+  LSPProtocolCallbacks Callbacks(*this);
----------------
nit: .


================
Comment at: clangd/ClangdLSPServer.cpp:211
+
+  // Run the Language Server loop
+  runLanguageServerLoop(In, Out, Dispatcher, IsDone);
----------------
nit: .


================
Comment at: clangd/ClangdLSPServer.h:33
+  /// each instance of ClangdLSPServer.
+  void run(std::istream &In);
 
----------------
It seems strange to have the In here and the Out in the constructor.


================
Comment at: clangd/ClangdLSPServer.h:49
   JSONOutput &Out;
+  bool IsDone = false;
   ClangdServer Server;
----------------
This deserves a comment.


https://reviews.llvm.org/D33201



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to