[PATCH] D103377: [clangd] Add ability to change storage directory of index files
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 31 05:49:19 PDT 2021
kadircet added a comment.
> Strictly speaking you could, assuming you have a compile database and it's okay to have copies or symlinks of the database.
Well you wouldn't have index shards without a compilation database anyway though.
> That does speak to another issue though; moving the compile database to move the index files is not very intuitive. We could improve the help text around compile commands to explain fully the implications of the file which might help.
I am not sure if this is something that is interesting to the average user. Hence we've only documented in the designs <https://clangd.llvm.org/design/indexing.html> and the code:
Before indexing each file, the index checks for a cached *.idx file on disk. After indexing, it writes this file. This avoids reindexing on startup if nothing changed since last time.
These files are located in .cache/clangd/index/ next to compile_commands.json. For headers with no CDB, such as the standard library, they are in clangd/index under the
user’s cache directory ($XDG_CACHE_HOME, DARWIN_USER_CACHE_DIR, or %LocalAppData%).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103377/new/
https://reviews.llvm.org/D103377
More information about the cfe-commits
mailing list