[PATCH] D103377: [clangd] Add ability to change storage directory of index files

Christopher Rhodes via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 30 04:45:23 PDT 2021


crr0004 created this revision.
crr0004 added a reviewer: sammccall.
Herald added subscribers: usaxena95, kadircet, arphaman.
crr0004 requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.

This adds a new option to change the root directory of where the index files get stored.
I mainly added this because I am doing profiling of indexing and needed a way for multiple instances of index files not to conflict with each other.

The extact naming of variables and the help text can be changed, I just guessed.

I tried to add a test for the change however I couldn't find a way to neatly check storage root directory. I am not sure if the test I've written is all that helpful.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103377

Files:
  clang-tools-extra/clangd/ClangdServer.cpp
  clang-tools-extra/clangd/ClangdServer.h
  clang-tools-extra/clangd/index/Background.h
  clang-tools-extra/clangd/index/BackgroundIndexStorage.cpp
  clang-tools-extra/clangd/tool/ClangdMain.cpp
  clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103377.348686.patch
Type: text/x-patch
Size: 6296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210530/2af072c9/attachment.bin>


More information about the cfe-commits mailing list