[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Jusufadis Bakamovic via Phabricator via cfe-commits
Adi added a comment. I had some spare time ... I hope you don't mind the comments. Hopefully you will find something useful :) Comment at: clangd/ClangDMain.cpp:65-70 +std::vector JSON; +JSON.resize(Len); +std::cin.read(JSON.data(), Len); + +// Insert a trailin

[PATCH] D29451: Add a prototype for clangd v0.1

2017-02-03 Thread Jusufadis Bakamovic via Phabricator via cfe-commits
Adi added inline comments. Comment at: clangd/JSONRPCDispatcher.h:25-32 + virtual ~Handler() = default; + + /// Called when the server receives a method call. This is supposed to return + /// a result on Outs. + virtual void handleMethod(llvm::yaml::MappingNode *Params, Strin