[clangd-dev] Building and sharing a clangd global index

William Wagner (BLOOMBERG/ 731 LEX) via clangd-dev clangd-dev at lists.llvm.org
Mon Apr 1 08:14:25 PDT 2019


I work on a fairly large C++ project and wanted to figure out a way to regularly build (e.g. nightly via Jenkins) a global project index that can be shared with all the members of my team. I want to share it because it takes a fairly long time to build the index after starting up, and it seems pretty redundant to have each team member doing so, seeing as most of the code is not changing on a day-to-day basis. I’ve tried peeking around the mailing lists and commit history of clangd, but I’m not sure whether this is possible yet - and if it was, what flags to use, what indexer etc.
I see there’s background-indexer WIP (https://reviews.llvm.org/D59605) and an existing clangd-indexer https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/indexer/IndexerMain.cpp
What is the difference between these?
Additionally, if anyone could provide some clarification on the different types of indexes clangd currently has (dex, background, static, etc.) that would be great :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20190401/a24ec87c/attachment.html>

More information about the clangd-dev mailing list