[PATCH] D64745: [clangd] BackgroundIndex stores shards to the closest project
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 18 10:08:21 PDT 2019
kadircet added inline comments.
================
Comment at: clang-tools-extra/clangd/index/BackgroundIndexStorage.cpp:149
+ std::unique_ptr<BackgroundIndexStorage> create(PathRef CDBDirectory) {
+ assert(!CDBDirectory.empty() &&
+ "Tried to create storage for empty directory!");
----------------
sammccall wrote:
> This assertion will be hit if home_directory() fails. It shouldn't, but... maybe keep the "return nullstorage" to cover this case (and also the assert?)
elog'ing instead of assertion, since this indeed happens in one of our lit-tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64745/new/
https://reviews.llvm.org/D64745
More information about the cfe-commits
mailing list