[PATCH] D34148: [clangd] Store references instead of unique_ptrs in ClangdServer.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 13 07:50:53 PDT 2017


ilya-biryukov created this revision.

ClangdServer was owning objects passed to it in constructor for no good reason.
Lots of stuff was moved from the heap to the stack thanks to this change.


https://reviews.llvm.org/D34148

Files:
  clangd/ClangdLSPServer.cpp
  clangd/ClangdLSPServer.h
  clangd/ClangdServer.cpp
  clangd/ClangdServer.h
  unittests/clangd/ClangdTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34148.102333.patch
Type: text/x-patch
Size: 13967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170613/33fe0342/attachment.bin>


More information about the cfe-commits mailing list