aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-11-26 16:00:11 +0000
committerSam McCall <sam.mccall@gmail.com>2018-11-26 16:00:11 +0000
commiteeaf26656494a4dbe2bcb86a785a91154e2b97b1 (patch)
tree560676a693fa8d8a2a0624f422342162862cb19a /docs
parent6e7fec8b8f0bba3cd8d064c2c35ad17f88aa1ac9 (diff)
downloadclang-tools-extra-eeaf26656494a4dbe2bcb86a785a91154e2b97b1.tar.gz
[clangd] Enable auto-index behind a flag.
Summary: Ownership and configuration: The auto-index (background index) is maintained by ClangdServer, like Dynamic. (This means ClangdServer will be able to enqueue preamble indexing in future). For now it's enabled by a simple boolean flag in ClangdServer::Options, but we probably want to eventually allow injecting the storage strategy. New 'sync' command: In order to meaningfully test the integration (not just unit-test components) we need a way for tests to ensure the asynchronous index reads/writes occur before a certain point. Because these tests and assertions are few, I think exposing an explicit "sync" command for use in tests is simpler than allowing threading to be completely disabled in the background index (as we do for TUScheduler). Bugs: I fixed a couple of trivial bugs I found while testing, but there's one I can't. JSONCompilationDatabase::getAllFiles() may return relative paths, and currently we trigger an assertion that assumes they are absolute. There's no efficient way to resolve them (you have to retrieve the corresponding command and then resolve against its directory property). In general I think this behavior is broken and we should fix it in JSONCompilationDatabase and require CompilationDatabase::getAllFiles() to be absolute. Reviewers: kadircet Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, cfe-commits Differential Revision: https://reviews.llvm.org/D54894 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@347567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions