[PATCH] D41668: [clangd] Add static index for the global code completion.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 03:19:42 PST 2018


ilya-biryukov added inline comments.


================
Comment at: clangd/ClangdLSPServer.h:40
+                  bool BuildDynamicSymbolIndex,
+                  std::unique_ptr<SymbolIndex> StaticIdx);
 
----------------
sammccall wrote:
> is there a reason ClangdServer should own this? I can imagine this complicating life for embedders. (vs a raw pointer)
+1, we had a design where `ClangdServer` owns everything before and having a raw reference turned out to be much more flexible!


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D41668





More information about the cfe-commits mailing list