[clangd] Store hash of command line in index shards.
authorKadir Cetinkaya <kadircet@google.com>
Thu, 4 Jul 2019 09:51:53 +0000 (09:51 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 4 Jul 2019 09:51:53 +0000 (09:51 +0000)
commit11e1c50b08baa8c0f1a220076bd38aff40eb6617
tree3c9ddfb46a6ae2adecedce275c626910d609f21c
parenta6fedc8bd631f2eefaaf529d3328a4585c0e8a72
[clangd] Store hash of command line in index shards.

Summary: This is to enable cache invalidation when command line flags changes.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D64018

llvm-svn: 365121
clang-tools-extra/clangd/index/Background.cpp
clang-tools-extra/clangd/index/Serialization.cpp
clang-tools-extra/clangd/index/Serialization.h
clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
clang-tools-extra/clangd/unittests/SerializationTests.cpp