[clangd] Collect and store expected types in the index
authorIlya Biryukov <ibiryukov@google.com>
Mon, 26 Nov 2018 15:29:14 +0000 (15:29 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 26 Nov 2018 15:29:14 +0000 (15:29 +0000)
commita21392bfc7e45073d4b6967f4daaf29011a2c64f
tree385e928d81ac367a0d3b3c26feeb5830425a4040
parentd360b2984e854bf7414239f66e81427cf0e25f1e
[clangd] Collect and store expected types in the index

Summary:
And add a hidden option to control whether the types are collected.
For experiments, will be removed when expected types implementation
is stabilized.

The index size is almost unchanged, e.g. the YAML index for all clangd
sources increased from 53MB to 54MB.

Reviewers: ioeric, sammccall

Reviewed By: sammccall

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

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

llvm-svn: 347560
clang-tools-extra/clangd/index/Index.h
clang-tools-extra/clangd/index/Serialization.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/YAMLSerialization.cpp