[PATCH] D44088: [clangd] Extract ClangdServer::Options struct.

2018-03-08 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple added inline comments. Comment at: clang-tools-extra/trunk/clangd/ClangdServer.h:131 + // Features like indexing must be enabled if desired. + static Options optsForTest(); + Shouldn't this be better implemented as a utility function in tests? Al

[PATCH] D44088: [clangd] Extract ClangdServer::Options struct.

2018-03-05 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326719: [clangd] Extract ClangdServer::Options struct. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D44088 Files: cla

[PATCH] D44088: [clangd] Extract ClangdServer::Options struct.

2018-03-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 136991. sammccall marked 3 inline comments as done. sammccall added a comment. address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44088 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServ

[PATCH] D44088: [clangd] Extract ClangdServer::Options struct.

2018-03-05 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdServer.h:94 + /// Returns a statically allocated instance. (Stateless, safe to share). + static RealFileSystemProvider *get(); + Maybe return a reference instead of a pointer? Comm

[PATCH] D44088: [clangd] Extract ClangdServer::Options struct.

2018-03-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ilya-biryukov. Herald added subscribers: cfe-commits, ioeric, jkorous-apple, klimek. This subsumes most of the params to ClangdServer and ClangdLSPServer. Adjacent changes: - tests use a consistent set of options, except when testing sp