summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp
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
commit422c828dfce022a87fe28473743c0111f582a0ee (patch)
tree6ab8ccbd4ac9ba59cdc54148e08daaaf68fc3720 /libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp
parentd60c289625cb862eeed3f96410a7ca80d2797bcc (diff)
downloadbcm5719-llvm-422c828dfce022a87fe28473743c0111f582a0ee.tar.gz
bcm5719-llvm-422c828dfce022a87fe28473743c0111f582a0ee.zip
[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 llvm-svn: 347567
Diffstat (limited to 'libcxx/test/std/utilities/variant/variant.variant/variant.status/index.pass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud