[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 172006. ilya-biryukov added a comment. - Instead of changing the interface, added a test we can rely on Context to give us what we need Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53946 Files: unittests/clangd/ClangdTests.cpp I

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Discussed offline a bit. We should be judicious with intrusive changes to support out-of-tree clients, and this interface seems a bit messy. There are alternatives with advantages: 1. less intrusive: clients can create a context before calling addDocument and observe

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/TUScheduler.h:77 +class DiagnosticsResult { +public: To avoid boilerplate this could be changed to: ``` using DiagnosticsResult = Optional>; ``` Would still keep it a named typedef to allow documenting wh

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: kadircet, jfb, arphaman, jkorous, MaskRay, ioeric, javed.absar. NFC on the LSP level, only produces notifications in the C++ API. Useful for the clients of the C++ API that provide an indicat