[PATCH] D44408: Move DraftMgr from ClangdServer to ClangdLSPServer

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 14 09:59:48 PDT 2018

ilya-biryukov added a comment.

In https://reviews.llvm.org/D44408#1036941, @simark wrote:

> I don't see how to avoid adding the Contents parameter to the codeComplete and signatureHelp methods, since they needed to fetch the document from the draft manager and pass it to the backend.

You can get the contents inside the `runWithPreamble` callback:

  llvm::Expected<InputsAndPreamble> IP;
  auto &Contents = IP->Inputs.Contents;

  rCTE Clang Tools Extra


More information about the cfe-commits mailing list